Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress Customizing the WordPress Admin Area Controlling Admin Navigation in WordPress How to Remove and Add Admin Menu Links via the functions.php File

Add the appearance >> manage menu to admin sidebar

I would like to have a link to the page in the appearance where I manage menus. It will just make it easier for many people if it was in the main menu.

Has anyone done it before and how did you get it to work.

1 Answer

I just got it:

// Fjerner menu
    function remove_submenus() {
      global $submenu;
      unset($submenu['themes.php'][10]); // fjerner udseende 
    }
    add_action('admin_menu', 'remove_submenus');


// TilfΓΈjer menu igen i top hvor alle har adgang til den
    function atweb_nav_menu () {

        add_menu_page('Nav Menus', 'Menu', 'read', 'nav-menus.php', '', '', 4);
    }
    add_action('admin_menu', 'atweb_nav_menu');