Automattic\WooCommerce\Utilities
OrderUtil::custom_orders_table_datastore_cache_enabled
Helper function to get whether custom order tables are enabled or not.
Метод класса: OrderUtil{}
Хуков нет.
Возвращает
true|false.
Использование
$result = OrderUtil::custom_orders_table_datastore_cache_enabled(): bool;
Код OrderUtil::custom_orders_table_datastore_cache_enabled() OrderUtil::custom orders table datastore cache enabled WC 10.5.2
public static function custom_orders_table_datastore_cache_enabled(): bool {
return wc_get_container()->get( CustomOrdersTableController::class )->hpos_data_caching_is_enabled();
}