WordPress.org

Ready to get started?Download WordPress

Ideas

Editor access to menus

  1. PARoss
    Member

    The new 3.0 menu function is so easy that it would be nice to allow editor access to edit menus (and text widgets per my previous ideas post - http://wordpress.org/extend/ideas/topic/editing-for-text-widgets).

    This way Editors could edit posts, pages, menus and widgets.

    Posted: 4 years ago #
  2. Mark
    Member

    12345

    Absolutely agree. The role/capabilities system needs to be revamped for WP to become more truly a CMS. Also related: editors need to be able to change widgets apart from messing with themes. Currently the two capabilities are bound up so that you can't give an editor edit access to widgets without also making it possible to change themes.

    Posted: 4 years ago #
  3. Justin Tadlock
    Member

    12345

    I disagree that Editors should have this kind of access by default. I certainly wouldn't want my editors to have that level of control over the display of my site.

    What I do agree with is that we need more granular capabilities. Currently, you must have the edit_theme_options cap to edit theme options, widgets, and nav menus. All three of these caps need to be separated into:

    • edit_theme_options
    • manage_widgets
    • manage_nav_menus

    Then, allow users to use a role/capability management plugin to allow access to specific pages.

    Posted: 4 years ago #
  4. Mark
    Member

    12345

    I agree. My original idea for a manage_widgets cap has been closed as "implemented". I would support a new idea along the lines you suggest. If WP is to live up to the promise of becoming a good CMS it needs to take this kind of thing more serious.

    Posted: 4 years ago #
  5. enailor
    Member

    Personally, I would love to grant access to Editors to manage the menus. We use WordPress for our clients, and while we do offer them an Admin user, we really preach that they should use the Editor login we provide for most items they need to do on the website. As many of them are "web novices" they can easily mess up the website under the Admin level. However, with the new Menus system, they will not be able to modify the navigation without accessing via Admin. Before 3.0 we used "exclude pages" and "my page order" plugins to allow them to build menus. This of course is much clunkier than the new menu feature, but as an editor they can not make such changes.
    I would love to see the Menus actually become its own tab, not just under appearance. But if not, at least allow me to control the access so that "lesser" roles have access without messing with Themes, Widgets and other "appearance" items that can really affect the overall design.

    Posted: 4 years ago #
  6. enailor
    Member

    The following code will allow the Editor role access to: Menus, Theme Options (but should not be able to switch, add or edit themes), Background (3.0+), Header (3.0+) and Widgets.

    While not exactly what I want, it does give the editor access to the Menu section.

    // get the the role object
    $role_object = get_role( 'editor' );
    
    // add $cap capability to this role object
    $role_object->add_cap( 'edit_theme_options' );
    Posted: 4 years ago #
  7. blitz999
    Member

    I agree to letting Editors have widget and menu access, but not access to the rest of the them controls. This is my request to the WordPress peeps with regard to improving capabilities.

    I use Editor role for the site owner. This is a regular person who needs a website and has learned how easy and amazing it is to maintain their content with WordPress as the CMS.

    For safety, I maintain admin controls for necessary updates. These are safely out of harms way as they are not accessible to the Editor.

    Widget access is necessary for the non-automatic widgets, such as adding a special offer banners and other small changes.

    Thinking about this, wouldn't it be great if you could log in as admin and 'set capability' options on each left hand menu item?

    Also, Facebook for example has a privacy preview, so you can view your FB page as a person on a half, or custom list would see it. It is a really useful feature. Currently on WP (and using something like Capability Manager), you have to tick off capabilities, then log out and log in as the other user to check if you've given correct privileges. It is a tedious process.

    BTW, thank you enailor for providing that code - agreed the solution is not perfect, but the best on the current WP set up.

    Posted: 3 years ago #
  8. AardvarkGirl
    Member

    I agree with blitz999

    I am a web developer who creates websites for clients who should be able to have access to widgets (moving them, removing them, updating a text widget etc) - but not necessarily to admin capabilities like running updates to the core, themes and plug-ins (as their web developer I'd be more than happy to run these updates first on a test site we keep or at least after properly backing up their database etc).

    I'm very new to wordpress and not a php or database person, but yesterday I went into the database and made the editor have every permission the admin has, then removed the things I mentioned above. The only pit fall I've had is that they can't see any plug-in 'panels' installed under the settings (like Testimonials etc).

    Yes, I also tried a plug-in but I also had the same problem and it was very tedious figuring out what cut off access to what. But in the end, plug-ins can cease to be supported or updated with WP version updates.

    Posted: 3 years ago #
  9. rediris
    Member

    Definitely agree with Greenshady above. I would love to see more granular capabilities for Editors to be able to edit widgets, or even better, allow Editors access to some, but not all, widgets.

    Posted: 3 years ago #
  10. suli94
    Member

    Hi enailor,

    What file did you put the below code in? And where specifically in the file?

    thanks!!

    // get the the role object
    $role_object = get_role( 'editor' );
    
    // add $cap capability to this role object
    $role_object->add_cap( 'edit_theme_options' );
    Posted: 3 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    14 Votes
  • Status

    This is plugin territory