Automattic\WooCommerce\Utilities

OrderUtil::orders_cache_usage_is_enabledpublic staticWC 1.0

Helper function to get whether the orders cache should be used or not.

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

Хуков нет.

Возвращает

true|false. True if the orders cache should be used, false otherwise.

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

$result = OrderUtil::orders_cache_usage_is_enabled(): bool;

Код OrderUtil::orders_cache_usage_is_enabled() WC 10.4.3

public static function orders_cache_usage_is_enabled(): bool {
	return wc_get_container()->get( OrderCacheController::class )->orders_cache_usage_is_enabled();
}