WC_Legacy_Coupon::inc_usage_count
Increase usage count for current coupon.
Method of the class: WC_Legacy_Coupon{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Legacy_Coupon = new WC_Legacy_Coupon(); $WC_Legacy_Coupon->inc_usage_count( $used_by );
- $used_by(string)
- Either user ID or billing email.
Default: ''
WC_Legacy_Coupon::inc_usage_count() WC Legacy Coupon::inc usage count code WC 10.3.6
public function inc_usage_count( $used_by = '' ) {
$this->increase_usage_count( $used_by );
}