Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_recorded_coupon_usage_counts()publicWC 1.0

Gets information about whether coupon counts were updated.

{} It's a 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.

Code of OrdersTableDataStore::get_recorded_coupon_usage_counts() WC 7.1.0

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