WordPress: Allow Editors to Manage Menus

By default users with the role of editor cannot see the “Appearance” menu and are not able to access any sub pages, including the menu editor.

If you want to give users with the role of editor the ability to edit menus on the site but not have access to other theme options, simply add the following code to your functions.php file:

// Allow editors to see Appearance menu
$role_object = get_role( 'editor' );
$role_object->add_cap( 'edit_theme_options' );
function hide_menu() {

    // Hide theme selection page
    remove_submenu_page( 'themes.php', 'themes.php' );

    // Hide widgets page
    remove_submenu_page( 'themes.php', 'widgets.php' );

    // Hide customize page
    global $submenu;
    unset($submenu['themes.php'][6]);

}

add_action('admin_head', 'hide_menu');
Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358