Automattic\WooCommerce\Utilities

OrderUtil::custom_orders_table_datastore_cache_enabledpublic staticWC 1.0

Helper function to get whether custom order tables are enabled or not.

Method of the class: OrderUtil{}

No Hooks.

Returns

true|false.

Usage

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

OrderUtil::custom_orders_table_datastore_cache_enabled() code WC 10.3.6

public static function custom_orders_table_datastore_cache_enabled(): bool {
	return wc_get_container()->get( CustomOrdersTableController::class )->hpos_data_caching_is_enabled();
}