Add feature switch for woo commerce list sync

[MAILPOET-1732]
This commit is contained in:
Rostislav Wolny
2019-04-23 16:13:46 +02:00
committed by M. Shull
parent 9d7707b98f
commit daca92097c
9 changed files with 27 additions and 2 deletions

View File

@@ -408,6 +408,9 @@ class Menu {
}
function wooCommerceListImport() {
if (!$this->settings->get('woo_commerce_list_sync_enabled')) {
return;
}
if ((bool)(defined('DOING_AJAX') && DOING_AJAX)) return;
$data = [
'finish_wizard_url' => $this->wp->adminUrl('admin.php?page=' . self::MAIN_PAGE_SLUG),