Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::get_sync_status()publicWC 1.0

Deprecated from version 9.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Get the current sync process status. The information is meaningful only if pending_data_sync_is_in_progress return true.

Method of the class: DataSynchronizer{}

No Hooks.

Return

Array.

Usage

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->get_sync_status();

Changelog

Deprecated since 9.0.0

DataSynchronizer::get_sync_status() code WC 9.4.2

public function get_sync_status() {
	wc_deprecated_function(
		__METHOD__,
		'9.0.0',
		'get_current_orders_pending_sync_count()'
	);

	return array(
		'initial_pending_count' => (int) 0,
		'current_pending_count' => $this->get_total_pending_count(),
	);
}