Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::clean_up │ private │ WC 1.0

Cleans up synchronization state and scheduled actions.

Method of the class: Synchronize{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Synchronize::clean_up() code WC 11.1.2

private function clean_up(): void {
	delete_option( self::SYNC_TASK_PAGE );
	delete_option( self::SYNC_TASK_PROGRESS );
	$this->queue->cancel( self::SYNC_TASK );
}