Add empty woo commerce import list page

[MAILPOET-1732]
This commit is contained in:
Rostislav Wolny
2019-03-14 15:44:36 +01:00
committed by M. Shull
parent 4f64b29458
commit 02c74db0ed
5 changed files with 109 additions and 1 deletions

View File

@@ -340,6 +340,19 @@ class Menu {
)
);
// WooCommerce List Import
$this->wp->addSubmenuPage(
true,
$this->setPageTitle($this->wp->__('WooCommerce List Import', 'mailpoet')),
$this->wp->__('WooCommerce List Import', 'mailpoet'),
AccessControl::PERMISSION_ACCESS_PLUGIN_ADMIN,
'mailpoet-woocommerce-list-import',
array(
$this,
'wooCommerceListImport'
)
);
// Update page
$this->wp->addSubmenuPage(
true,
@@ -394,6 +407,14 @@ class Menu {
$this->displayPage('welcome_wizard.html', $data);
}
function wooCommerceListImport() {
if ((bool)(defined('DOING_AJAX') && DOING_AJAX)) return;
$data = [
];
$this->displayPage('woocommerce_list_import.html', $data);
}
function update() {
global $wp;
$current_url = $this->wp->homeUrl(add_query_arg($wp->query_string, $wp->request));