WC_Coupon_Data_Store_Interface::increase_usage_count()publicWC 1.0

Increase usage count for current coupon.

Method of the class: WC_Coupon_Data_Store_Interface{}

No Hooks.

Return

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() code WC 9.4.2

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