WordPress.org

Ready to get started?Download WordPress

Forums

User Role Editor
Allow Menu Editing but not Widgets (2 posts)

  1. triggame
    Member
    Posted 3 years ago #

    Thank you for a good plugin.
    Which option do I select to allow an editor to edit the menu system I've enabled through my theme, but not allow them to change widgets?

    http://wordpress.org/extend/plugins/user-role-editor/

  2. Vladimir Garagulya
    Member
    Plugin Author

    Posted 3 years ago #

    It seems that WordPress uses the same 'edit_theme_options' capability to check access to menu editor and widget changing both. At the begin of widgets.php we see:

    if ( ! current_user_can('edit_theme_options') )
    	wp_die( __( 'Cheatin’ uh?' ));

    At menu.php:
    $submenu['themes.php'][10] = array(__('Menus'), 'edit_theme_options', 'nav-menus.php' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic