Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

SyncUI::cancel_sync()publicWC 1.0

If a migration is in progress, this will attempt to cancel it.

{} Это метод класса: SyncUI{}

Хуков нет.

Возвращает

null. Ничего.

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

$SyncUI = new SyncUI();
$SyncUI->cancel_sync();

Код SyncUI::cancel_sync() WC 6.7.0

public function cancel_sync() {
	$this->security_check();
	wc_get_logger()->log( 'info', __( 'Approved Download Directories sync: scan has been cancelled.', 'woocommerce' ) );
	wc_get_container()->get( Synchronize::class )->stop();
}