Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_recorded_coupon_usage_counts()publicWC 1.0

Gets information about whether coupon counts were updated.

Method of the class: OrdersTableDataStore{}

No Hooks.

Return

true|false. Whether coupon counts were updated.

Usage

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_recorded_coupon_usage_counts( $order );
$order(\WC_Order) (required)
Order object.

OrdersTableDataStore::get_recorded_coupon_usage_counts() code WC 8.9.0

public function get_recorded_coupon_usage_counts( $order ) {
	$order_id = is_int( $order ) ? $order : $order->get_id();
	$order    = wc_get_order( $order_id );
	return $order->get_recorded_coupon_usage_counts();
}