Support » Themes and Templates » Allow Editor Role to Edit Settings (manage_options)

  • I am trying to allow users with the role Editor to be able to edit options listed under Settings.

    I tried this in my functions.php but it didn’t work.

    // Allow Editor Role to edit settings
    $EditorRole = get_role('editor');
    $EditorRole -> add_cap('manage_options');

    Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • bump

    The above code is actually working. manage_options capability has been successfully added to the Editor role.

    However, the Settings menu is still not visible. I even went as far as to install the Admin Menu Editor plugin and by default it is set to make Settings visible for any role with manage_options capability.

    If I set the it make it visible for any user with a Editor Role, it still is not visible.

    I am stumped. 🙁

    I’m a novice user of wordpress. I used your function for d13slideshow.2.2.0 plugin and it work

    I saw there’s one section of the code in the plugin
    function d13ss_add_pages() {
    // Add a new submenu under Options:
    add_options_page(‘Homepage slideshow’, ‘Homepage slideshow’, 7, ‘d13slideshow’, ‘d13ss_options_page’);

    Previously the level is set to 8. I changed to 7. When i logged in as editor role, i can see the plugin option under Setting menu.

    Hope this one could help you out

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Allow Editor Role to Edit Settings (manage_options)’ is closed to new replies.