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?

Method of the class: 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;

DataSynchronizer::custom_orders_table_is_authoritative() code WC 8.7.0

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