Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Synchronize::stop()
Stops/cancels the current synchronization task.
Method of the class: Synchronize{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Synchronize = new Synchronize(); $Synchronize->stop();
Synchronize::stop() Synchronize::stop code WC 9.5.1
public function stop() { WC_Admin_Notices::add_notice( 'download_directories_sync_complete', true ); delete_option( self::SYNC_TASK_PAGE ); delete_option( self::SYNC_TASK_PROGRESS ); $this->queue->cancel( self::SYNC_TASK ); }