WC_Legacy_Coupon::dcr_usage_count() public WC 1.0
Decrease usage count for current coupon.
{} It's a method of the class: WC_Legacy_Coupon{}
No Hooks.
Return
Null. Nothing.
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
Code of WC_Legacy_Coupon::dcr_usage_count() WC Legacy Coupon::dcr usage count WC 5.0.0
public function dcr_usage_count( $used_by = '' ) {
$this->decrease_usage_count( $used_by );
}