Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::custom_orders_table_usage_is_enabled()
Is the custom orders table usage enabled via settings? This can be true only if the feature is enabled and a table regeneration has been completed.
Method of the class: CustomOrdersTableController{}
No Hooks.
Return
true|false
. True if the custom orders table usage is enabled
Usage
$CustomOrdersTableController = new CustomOrdersTableController(); $CustomOrdersTableController->custom_orders_table_usage_is_enabled(): bool;
CustomOrdersTableController::custom_orders_table_usage_is_enabled() CustomOrdersTableController::custom orders table usage is enabled code WC 8.6.1
public function custom_orders_table_usage_is_enabled(): bool { return get_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION ) === 'yes'; }