Add admin page for experimental features

[MAILPOET-2008]
This commit is contained in:
Jan Jakeš
2019-05-13 14:36:55 +02:00
committed by M. Shull
parent aa4a442a29
commit fe51e5e38c
4 changed files with 132 additions and 0 deletions

View File

@@ -385,6 +385,17 @@ class Menu {
'migration'
)
);
// Settings page
$this->wp->addSubmenuPage(
true,
$this->setPageTitle('Experimental Features'),
'',
AccessControl::PERMISSION_MANAGE_FEATURES,
'mailpoet-experimental',
[$this, 'experimentalFeatures']
);
//
}
function disableWPEmojis() {
@@ -542,6 +553,10 @@ class Menu {
);
}
function experimentalFeatures() {
$this->displayPage('experimental-features.html', []);
}
private function _getFlags() {
// flags (available features on WP install)
$flags = array();