WC_Coupon_Data_Store_Interface::increase_usage_count()
Increase usage count for current coupon.
Метод класса: WC_Coupon_Data_Store_Interface{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$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) (обязательный) (передается по ссылке — &)
- Coupon object.
- $used_by(строка)
- Either user ID or billing email.
По умолчанию: ''
Код WC_Coupon_Data_Store_Interface::increase_usage_count() WC Coupon Data Store Interface::increase usage count WC 9.6.1
public function increase_usage_count( &$coupon, $used_by = '' );