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

  1. triggame
    Posted 4 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?


  2. Vladimir Garagulya
    Plugin Author

    Posted 4 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

  • User Role Editor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic