Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin
SyncUI::cancel_sync
If a migration is in progress, this will attempt to cancel it.
Метод класса: SyncUI{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$SyncUI = new SyncUI(); $SyncUI->cancel_sync();
Код SyncUI::cancel_sync() SyncUI::cancel sync WC 10.8.1
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();
}