WC_Abstract_Order::get_recorded_coupon_usage_counts()publicWC 1.0

Gets information about whether coupon counts were updated.

Method of the class: WC_Abstract_Order{}

No Hooks.

Return

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

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_recorded_coupon_usage_counts( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

WC_Abstract_Order::get_recorded_coupon_usage_counts() code 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 ) );
}