Automattic\WooCommerce\Internal\Utilities

COTMigrationUtil::is_custom_order_tables_in_sync()publicWC 1.0

Checks if posts and order custom table sync is enabled and there are no pending orders.

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

Хуков нет.

Возвращает

true|false.

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

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

Код COTMigrationUtil::is_custom_order_tables_in_sync() WC 6.9.4

public function is_custom_order_tables_in_sync() : bool {
	$sync_status = $this->data_synchronizer->get_sync_status();
	return $sync_status['current_pending_count'] === 0 && $this->data_synchronizer->data_sync_is_enabled();
}