Adding menu item to WordPress admin bar for editors to edit one plugin's settings
up vote
0
down vote
favorite
I installed the Siteimprove plugin to my client's WordPress website and I need to provide editor access to the plugin. Editors by default do not have any access to plugins. I tried to add the following to my functions.php
:
if (!current_user_can('manage_options'))
add_menu_page(
'Siteimprove Plugin',
'Siteimprove',
'manage_options',
'siteimprove',
'siteimprove_settings_form'
);
This is the code from the Siteimprove plugin that adds it to the menu:
/**
* Register menu for settings form page.
*/
public function register_menu()
// Add top level menu page.
add_menu_page(
__('Siteimprove Plugin'),
__('Siteimprove'),
'manage_options',
'siteimprove',
'Siteimprove_Admin_Settings::siteimprove_settings_form'
);
I created a test editor account and this is not working. Am I missing something to get this working? Thanks for your help!
php wordpress function plugins
add a comment |
up vote
0
down vote
favorite
I installed the Siteimprove plugin to my client's WordPress website and I need to provide editor access to the plugin. Editors by default do not have any access to plugins. I tried to add the following to my functions.php
:
if (!current_user_can('manage_options'))
add_menu_page(
'Siteimprove Plugin',
'Siteimprove',
'manage_options',
'siteimprove',
'siteimprove_settings_form'
);
This is the code from the Siteimprove plugin that adds it to the menu:
/**
* Register menu for settings form page.
*/
public function register_menu()
// Add top level menu page.
add_menu_page(
__('Siteimprove Plugin'),
__('Siteimprove'),
'manage_options',
'siteimprove',
'Siteimprove_Admin_Settings::siteimprove_settings_form'
);
I created a test editor account and this is not working. Am I missing something to get this working? Thanks for your help!
php wordpress function plugins
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I installed the Siteimprove plugin to my client's WordPress website and I need to provide editor access to the plugin. Editors by default do not have any access to plugins. I tried to add the following to my functions.php
:
if (!current_user_can('manage_options'))
add_menu_page(
'Siteimprove Plugin',
'Siteimprove',
'manage_options',
'siteimprove',
'siteimprove_settings_form'
);
This is the code from the Siteimprove plugin that adds it to the menu:
/**
* Register menu for settings form page.
*/
public function register_menu()
// Add top level menu page.
add_menu_page(
__('Siteimprove Plugin'),
__('Siteimprove'),
'manage_options',
'siteimprove',
'Siteimprove_Admin_Settings::siteimprove_settings_form'
);
I created a test editor account and this is not working. Am I missing something to get this working? Thanks for your help!
php wordpress function plugins
I installed the Siteimprove plugin to my client's WordPress website and I need to provide editor access to the plugin. Editors by default do not have any access to plugins. I tried to add the following to my functions.php
:
if (!current_user_can('manage_options'))
add_menu_page(
'Siteimprove Plugin',
'Siteimprove',
'manage_options',
'siteimprove',
'siteimprove_settings_form'
);
This is the code from the Siteimprove plugin that adds it to the menu:
/**
* Register menu for settings form page.
*/
public function register_menu()
// Add top level menu page.
add_menu_page(
__('Siteimprove Plugin'),
__('Siteimprove'),
'manage_options',
'siteimprove',
'Siteimprove_Admin_Settings::siteimprove_settings_form'
);
I created a test editor account and this is not working. Am I missing something to get this working? Thanks for your help!
php wordpress function plugins
php wordpress function plugins
asked Nov 10 at 0:03
Liz
2681725
2681725
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234819%2fadding-menu-item-to-wordpress-admin-bar-for-editors-to-edit-one-plugins-setting%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown