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. Ничего (null).

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

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

Код SyncUI::cancel_sync() WC 8.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();
}