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.

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

Хуков нет.

Возвращает

Массив.

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

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

Код DataSynchronizer::get_sync_status() WC 7.3.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(),
	);
}