Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Synchronize::clean_up
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() 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 );
}