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.
Method of the class: COTMigrationUtil{}
No Hooks.
Returns
true|false
.
Usage
$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 code WC 9.8.5
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(); }