WC_Coupon_Data_Store_Interface::increase_usage_count() public WC 1.0
Increase usage count for current coupon.
{} It's a method of the class: WC_Coupon_Data_Store_Interface{}
No Hooks.
Return
Null. Nothing.
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)
- Coupon object.
- $used_by(string)
- Either user ID or billing email.
Code of WC_Coupon_Data_Store_Interface::increase_usage_count() WC Coupon Data Store Interface::increase usage count WC 5.0.0
public function increase_usage_count( &$coupon, $used_by = '' );