Automattic\WooCommerce\Internal\DataStores\Orders

CustomOrdersTableController::custom_orders_table_usage_is_enabled()publicWC 1.0

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.

{} Это метод класса: CustomOrdersTableController{}

Хуков нет.

Возвращает

true|false. True if the custom orders table usage is enabled

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

$CustomOrdersTableController = new CustomOrdersTableController();
$CustomOrdersTableController->custom_orders_table_usage_is_enabled(): bool;

Код CustomOrdersTableController::custom_orders_table_usage_is_enabled() WC 6.6.1

public function custom_orders_table_usage_is_enabled(): bool {
	return 'yes' === get_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION );
}