WC_Abstract_Order::get_recorded_coupon_usage_counts()
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 Abstract Order::get recorded coupon usage counts WC 9.7.1
public function get_recorded_coupon_usage_counts( $context = 'view' ) { return wc_string_to_bool( $this->get_prop( 'recorded_coupon_usage_counts', $context ) ); }