Automattic\WooCommerce\Internal\DataStores\Orders
DataSynchronizer::cleanup_synchronization_state
Cleanup all the synchronization status information, because the process has been disabled by the user via settings, or because there's nothing left to synchronize.
Method of the class: DataSynchronizer{}
No Hooks.
Returns
null. Nothing (null).
Usage
$DataSynchronizer = new DataSynchronizer(); $DataSynchronizer->cleanup_synchronization_state();
DataSynchronizer::cleanup_synchronization_state() DataSynchronizer::cleanup synchronization state code WC 10.3.6
public function cleanup_synchronization_state() {
delete_option( 'woocommerce_initial_orders_pending_sync_count' );
}