Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::stop()publicWC 1.0

Stops/cancels the current synchronization task.

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

No Hooks.

Return

null. Nothing.

Usage

$Synchronize = new Synchronize();
$Synchronize->stop();

Code of Synchronize::stop() WC 7.1.0

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 );
}