Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::get_sync_status()publicWC 1.0

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

{} It's a method of the class: DataSynchronizer{}

No Hooks.

Return

Array.

Usage

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

Code of DataSynchronizer::get_sync_status() WC 7.1.0

public function get_sync_status() {
	return array(
		'initial_pending_count' => (int) get_option( self::INITIAL_ORDERS_PENDING_SYNC_COUNT_OPTION, 0 ),
		'current_pending_count' => $this->get_total_pending_count(),
	);
}