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
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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