WordPress.org

Ready to get started?Download WordPress

Forums

Allow Editor Role to Edit Settings (manage_options) (4 posts)

  1. w1nk5
    Member
    Posted 3 years ago #

    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?

  2. w1nk5
    Member
    Posted 3 years ago #

    bump

  3. w1nk5
    Member
    Posted 3 years ago #

    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. :(

  4. caremy
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.