Automattic\WooCommerce\Internal\DataStores\Orders

OrdersTableDataStore::get_recorded_coupon_usage_counts()publicWC 1.0

Gets information about whether coupon counts were updated.

Метод класса: OrdersTableDataStore{}

Хуков нет.

Возвращает

true|false. Whether coupon counts were updated.

Использование

$OrdersTableDataStore = new OrdersTableDataStore();
$OrdersTableDataStore->get_recorded_coupon_usage_counts( $order );
$order(\WC_Order) (обязательный)
Order object.

Код OrdersTableDataStore::get_recorded_coupon_usage_counts() WC 7.3.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();
}