Automattic\WooCommerce\Internal\Utilities
COTMigrationUtil::is_custom_order_tables_in_sync()
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() COTMigrationUtil::is custom order tables in sync WC 9.3.3
public function is_custom_order_tables_in_sync() : bool { if ( ! $this->data_synchronizer->data_sync_is_enabled() ) { return false; } return 0 === $this->data_synchronizer->get_total_pending_count(); }