WC_Legacy_Coupon::dcr_usage_count()
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() WC Legacy Coupon::dcr usage count code WC 9.7.1
public function dcr_usage_count( $used_by = '' ) { $this->decrease_usage_count( $used_by ); }