Add admin page for experimental features
[MAILPOET-2008]
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user