WooCommerce Code Reference

WC_Coupon_Tracking
in package

This class adds actions to track usage of a WooCommerce Coupon.

Table of Contents

init()  : mixed
Init tracking.
track_coupon_updated()  : mixed
Send a Tracks event when a coupon is updated.

Methods

track_coupon_updated()

Send a Tracks event when a coupon is updated.

public track_coupon_updated(WC_Coupon $coupon, array<string|int, mixed> $updated_props) : mixed
Parameters
$coupon : WC_Coupon

The coupon that has been updated.

$updated_props : array<string|int, mixed>

The props of the coupon that have been updated.

Return values
mixed