Home / admin / Customize admin menu order
  • How to Customize admin menu order

    no thumbnail sorry: Customize admin menu order

    Adding this PHP code to the functions.php of your wordpress theme will allow you to customize the order of the admin menu items.

    ( click code to copy )

    wordpress snippet : PHP

       function custom_menu_order($menu_ord) {
           if (!$menu_ord) return true;
           return array(
            'index.php', // this represents the dashboard link
            'edit.php?post_type=events', // this is a custom post type menu
            'edit.php?post_type=page', // this is the default page menu
            'edit.php', // this is the default POST admin menu
       add_filter('custom_menu_order', 'custom_menu_order');
       add_filter('menu_order', 'custom_menu_order');

    ( WordPress codex functions, hooks, in this snippet. )

    custom_menu_order, menu_order, add_filter,
  • Pingback: Tweets that mention Wordpress Customize admin menu order – wpsnipp.com Wordpress code snippets for your blog -- Topsy.com()

  • Perfect! Most elegant solution on Google, so far

  • Hello, Thanks for the script, just one question?

    When using above code, all menus appear below each other. Is there a way to add the divider after few menus just like the default menu in WordPress?

  • Daniel

    Hi Kevin!
    How can I include a menu created by a plug-in into the array?
    I’m trying “admin.php?page=chat” but doesn’t work.


    • Lucas

      I’m having the same problem!

    • Lucas

      Solved!! Instead of “admin.php?page=chat” put only “chat” – Simple as that!

      • Daniel

        doesn’t work for me =(

  • WP4RE

    Thanks, it worked like a charm!!! I really didn’t like the default WP Admin order, or top level menu names for that matter, so with the help of your code and another tutorial, I got it pretty much just the way I want it. I think it’s going to be more user-friendly and intuitive for my clients.


  • Ronald

    Do I have to past it into a specific place in the functions.php? I am using the theme Twenty Thirteen and it’s not working for me.