WC_Coupon::set_usage_count() public WC 3.0.0
Set how many times this coupon has been used.
{} Это метод класса: WC_Coupon{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_usage_count( $usage_count );
- $usage_count(число) (обязательный)
- Usage count.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Coupon::set_usage_count() WC Coupon::set usage count WC 5.0.0
public function set_usage_count( $usage_count ) {
$this->set_prop( 'usage_count', absint( $usage_count ) );
}