Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::stop │ public │ WC 1.0

Completes the current synchronization task and marks its results for review.

The persistent notice is also the acknowledgement state used by Site Health. Existing sites can therefore keep a pending review across requests and WooCommerce updates.

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

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код Synchronize::stop() WC 11.2.2

public function stop() {
	if ( $this->is_cancelled() ) {
		$this->clean_up();
		return;
	}

	WC_Admin_Notices::add_notice( 'download_directories_sync_complete', true );
	$this->clean_up();
}