WC_Order_Data_Store_CPT::get_recorded_coupon_usage_counts( WC_Order|int $order )
Gets information about whether coupon counts were updated.
Description Description
Parameters Parameters
- $order
-
(Required) Order ID or order object.
Return Return
(bool)
Source Source
File: includes/data-stores/class-wc-order-data-store-cpt.php
public function get_recorded_coupon_usage_counts( $order ) {
$order_id = WC_Order_Factory::get_order_id( $order );
return wc_string_to_bool( get_post_meta( $order_id, '_recorded_coupon_usage_counts', true ) );
}