WC_Coupon::set_usage_count()publicWC 3.0.0

Set how many times this coupon has been used.

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

Хуков нет.

Возвращает

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

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

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_usage_count( $usage_count );
$usage_count(int) (обязательный)
Usage count.

Список изменений

С версии 3.0.0 Введена.

Код WC_Coupon::set_usage_count() WC 8.7.0

public function set_usage_count( $usage_count ) {
	$this->set_prop( 'usage_count', absint( $usage_count ) );
}