WC_Abstract_Order::get_recorded_coupon_usage_counts
Gets information about whether coupon counts were updated.
Method of the class: WC_Abstract_Order{}
No Hooks.
Returns
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() WC Abstract Order::get recorded coupon usage counts code WC 10.7.0
public function get_recorded_coupon_usage_counts( $context = 'view' ) {
return wc_string_to_bool( $this->get_prop( 'recorded_coupon_usage_counts', $context ) );
}