Automattic\WooCommerce\Utilities

OrderUtil::orders_cache_usage_is_enabled │ public static │ WC 1.0

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

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

Хуков нет.

Возвращает

bool. 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 11.3.0

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