Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::cancel │ public │ WC 11.1.0

Cancels the current synchronization task without marking its results for review.

Method of the class: Synchronize{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Synchronize = new Synchronize();
$Synchronize->cancel(): void;

Changelog

Since 11.1.0 Introduced.

Synchronize::cancel() code WC 11.2.1

public function cancel(): void {
	update_option( self::SYNC_TASK_CANCELLED, true );
	$this->clean_up();
}