Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::unschedule_background_syncprivateWC 1.0

Remove any pending background sync events.

Method of the class: DataSynchronizer{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->unschedule_background_sync();

DataSynchronizer::unschedule_background_sync() code WC 10.3.6

private function unschedule_background_sync() {
	WC()->queue()->cancel_all( self::BACKGROUND_SYNC_EVENT_HOOK );
}