Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::custom_orders_table_is_authoritative()publicWC 1.0

Is the custom orders table the authoritative data source for orders currently?

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

No Hooks.

Return

true|false. Whether the custom orders table the authoritative data source for orders currently.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->custom_orders_table_is_authoritative(): bool;

Code of DataSynchronizer::custom_orders_table_is_authoritative() WC 7.1.0

public function custom_orders_table_is_authoritative(): bool {
	return wc_string_to_bool( get_option( CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION ) );
}