Remove dynamic segments code

[MAILPOET-2480]
This commit is contained in:
Pavel Dohnal
2020-04-15 13:49:56 +02:00
committed by Veljko V
parent e2da9ebae5
commit eee44e9d06
6 changed files with 0 additions and 212 deletions

View File

@ -2,7 +2,6 @@
namespace MailPoet\Config;
use MailPoet\AdminPages\Pages\DynamicSegments;
use MailPoet\AdminPages\Pages\ExperimentalFeatures;
use MailPoet\AdminPages\Pages\FormEditor;
use MailPoet\AdminPages\Pages\Forms;
@ -267,27 +266,6 @@ class Menu {
]);
});
// Dynamic segments page
$dynamicSegmentsPage = $this->wp->addSubmenuPage(
self::MAIN_PAGE_SLUG,
$this->setPageTitle(__('Segments', 'mailpoet')),
$this->wp->__('Segments', 'mailpoet'),
AccessControl::PERMISSION_MANAGE_SEGMENTS,
'mailpoet-dynamic-segments',
[
$this,
'dynamicSegments',
]
);
// add limit per page to screen options
$this->wp->addAction('load-' . $dynamicSegmentsPage, function() {
$this->wp->addScreenOption('per_page', [
'label' => WPFunctions::get()->_x('Number of segments per page', 'segments per page (screen options)', 'mailpoet'),
'option' => 'mailpoet_dynamic_segments_per_page',
]);
});
// Settings page
$this->wp->addSubmenuPage(
self::MAIN_PAGE_SLUG,
@ -467,10 +445,6 @@ class Menu {
$this->container->get(Segments::class)->render();
}
public function dynamicSegments() {
$this->container->get(DynamicSegments::class)->render();
}
public function forms() {
$this->container->get(Forms::class)->render();
}