WC_Abstract_Order::set_recorded_coupon_usage_counts()publicWC 1.0

Stores information about whether the coupon usage were counted.

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

Хуков нет.

Возвращает

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

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

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->set_recorded_coupon_usage_counts( $value );
$value(true|false|строка) (обязательный)
True if counted, false if not.

Код WC_Abstract_Order::set_recorded_coupon_usage_counts() WC 8.7.0

public function set_recorded_coupon_usage_counts( $value ) {
	$this->set_prop( 'recorded_coupon_usage_counts', wc_string_to_bool( $value ) );
}