WC_Legacy_Coupon::dcr_usage_count()publicWC 1.0

Decrease usage count for current coupon.

Method of the class: WC_Legacy_Coupon{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Legacy_Coupon = new WC_Legacy_Coupon();
$WC_Legacy_Coupon->dcr_usage_count( $used_by );
$used_by(string)
Either user ID or billing email
Default: ''

WC_Legacy_Coupon::dcr_usage_count() code WC 8.9.0

public function dcr_usage_count( $used_by = '' ) {
	$this->decrease_usage_count( $used_by );
}