WC_Coupon::get_limit_usage_to_x_items()publicWC 3.0.0

Usage limited to certain amount of items

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

Хуков нет.

Возвращает

Int|null.

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

$WC_Coupon = new WC_Coupon();
$WC_Coupon->get_limit_usage_to_x_items( $context );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

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

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

Код WC_Coupon::get_limit_usage_to_x_items() WC 8.7.0

public function get_limit_usage_to_x_items( $context = 'view' ) {
	return $this->get_prop( 'limit_usage_to_x_items', $context );
}