Automattic\WooCommerce\Internal\Utilities

COTMigrationUtil::custom_orders_table_data_sync_is_enabled │ public │ WC 11.0.0

Checks whether the real-time data sync between the posts and orders tables is enabled.

Unlike is_custom_order_tables_in_sync(), this only reflects whether the sync setting is enabled and does not run a query to determine whether the tables are currently fully synchronized, so it is much cheaper to call. Use this when you only need to know if sync is turned on, not whether every order is in sync.

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

Хуков нет.

Возвращает

bool. True if data sync is enabled, false otherwise.

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

$COTMigrationUtil = new COTMigrationUtil();
$COTMigrationUtil->custom_orders_table_data_sync_is_enabled(): bool;

Список изменений

С версии 11.0.0 Введена.

Код COTMigrationUtil::custom_orders_table_data_sync_is_enabled() WC 11.3.0

public function custom_orders_table_data_sync_is_enabled(): bool {
	return $this->data_synchronizer->data_sync_is_enabled();
}