WC_Abstract_Order::get_recorded_coupon_usage_counts()publicWC 1.0

Gets information about whether coupon counts were updated.

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

Хуков нет.

Возвращает

true|false. True if coupon counts were updated, false otherwise.

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

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

Код WC_Abstract_Order::get_recorded_coupon_usage_counts() WC 8.7.0

public function get_recorded_coupon_usage_counts( $context = 'view' ) {
	return wc_string_to_bool( $this->get_prop( 'recorded_coupon_usage_counts', $context ) );
}