Automattic\WooCommerce\Internal\Utilities

COTMigrationUtil::is_custom_order_tables_in_sync │ public │ WC 1.0

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

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

Хуков нет.

Возвращает

bool.

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

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

Код COTMigrationUtil::is_custom_order_tables_in_sync() WC 11.3.0

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();
}