Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Synchronize::stop
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.
Method of the class: Synchronize{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Synchronize = new Synchronize(); $Synchronize->stop();
Synchronize::stop() Synchronize::stop code WC 11.3.0
public function stop() {
if ( $this->is_cancelled() ) {
$this->clean_up();
return;
}
WC_Admin_Notices::add_notice( 'download_directories_sync_complete', true );
$this->clean_up();
}