WC_Coupon_Data_Store_Interface::decrease_usage_countpublicWC 1.0

Decrease usage count for current coupon.

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

Метод класса: WC_Coupon_Data_Store_Interface{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Coupon_Data_Store_Interface = new WC_Coupon_Data_Store_Interface();
$WC_Coupon_Data_Store_Interface->decrease_usage_count( $coupon, $used_by );
$coupon(обязательный) (передается по ссылке — &)
.
$used_by
.
По умолчанию: ''

Код WC_Coupon_Data_Store_Interface::decrease_usage_count() WC 9.9.5

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