WordPress at Your Fingertips
function is not described

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.


null. Nothing.


$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.
Either user ID or billing email.
Default: ''

Code of WC_Coupon_Data_Store_Interface::increase_usage_count() WC 5.8.0

public function increase_usage_count( &$coupon, $used_by = '' );