WordPress at Your Fingertips
function is not described

WC_Coupon_Data_Store_Interface::decrease_usage_count() public WC 1.0

Decrease usage count for current coupon.

@param WC_Coupon $coupon Coupon object. @param string $used_by Either user ID or billing email.

{} 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->decrease_usage_count( $coupon, $used_by );
$coupon (required) (passed by reference — &)
-
$used_by **
-
Default: ''

Code of WC_Coupon_Data_Store_Interface::decrease_usage_count() WC 5.8.0

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