Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::custom_orders_table_is_authoritative()
Is the custom orders table the authoritative data source for orders currently?
Метод класса: DataSynchronizer{}
Хуков нет.
Возвращает
true|false
. Whether the custom orders table the authoritative data source for orders currently.
Использование
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->custom_orders_table_is_authoritative(): bool;
Код DataSynchronizer::custom_orders_table_is_authoritative() DataSynchronizer::custom orders table is authoritative WC 7.3.0
public function custom_orders_table_is_authoritative(): bool { return wc_string_to_bool( get_option( CustomOrdersTableController::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION ) ); }