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 6.6.1

public function get_recorded_coupon_usage_counts( $order ) {
	return wc_string_to_bool( $order->get_meta( '_recorded_coupon_usage_counts', true ) );
}