WC_Coupon_Data_Store_Interface::increase_usage_count
Increase usage count for current coupon.
Method of the class: WC_Coupon_Data_Store_Interface{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface(); $WC_Coupon_Data_Store_Interface->increase_usage_count( $coupon, $used_by );
- $coupon(WC_Coupon) (required) (passed by reference — &)
- Coupon object.
- $used_by(string)
- Either user ID or billing email.
Default:''
WC_Coupon_Data_Store_Interface::increase_usage_count() WC Coupon Data Store Interface::increase usage count code WC 10.4.3
public function increase_usage_count( &$coupon, $used_by = '' );