WC_Abstract_Order::set_recorded_coupon_usage_counts()publicWC 1.0

Stores information about whether the coupon usage were counted.

Method of the class: WC_Abstract_Order{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->set_recorded_coupon_usage_counts( $value );
$value(true|false|string) (required)
True if counted, false if not.

WC_Abstract_Order::set_recorded_coupon_usage_counts() code WC 8.7.0

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