Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::get_sync_status
Deprecated since 9.0.0. It is no longer supported and may 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.
Returns
Array.
Usage
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->get_sync_status();
Changelog
| Deprecated since | 9.0.0 |
DataSynchronizer::get_sync_status() DataSynchronizer::get sync status code WC 10.4.3
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(),
);
}