Automattic\WooCommerce\Internal\Utilities

COTMigrationUtil::is_custom_order_tables_in_syncpublicWC 1.0

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() code WC 10.8.1

public function is_custom_order_tables_in_sync() : bool {
	if ( ! $this->data_synchronizer->data_sync_is_enabled() ) {
		return false;
	}

	return ! $this->data_synchronizer->has_orders_pending_sync();
}