Personalization – Change the position of the control panel menu?

You can reorder the administration menu items like this, note that I moved index.php (control panel) to the bottom.

my_custom_menu_order ($ menu_ord) {function
if (! $ menu_ord) returns true;

return matrix
& Separator1 & # 39 ;, // first separator
& # 39; edit.php & # 39 ;, // Publications
& # 39; upload.php & # 39 ;, // Media
& # 39; link-manager.php & # 39 ;, // Links
& # 39; edit-comments.php & # 39 ;, // Comments
& # 39; edit.php? post_type = page & # 39 ;, // Pages
& # 39; separator2 & # 39 ;, // second separator
& # 39; themes.php & # 39 ;, // Appearance
& # 39; plugins.php & # 39 ;, // Plugins
& # 39; users.php & # 39 ;, // Users
& # 39; tools.php & # 39 ;, // Tools
& # 39; options-general.php & # 39 ;, // Settings
& # 39; separator-last & # 39 ;, // last separator
& # 39; index.php & # 39 ;, // Dashboard
);
}

add_filter (& # 39; custom_menu_order & # 39 ;, & # 39; my_custom_menu_order & # 39 ;, 10, 1);
add_filter (& # 39; menu_order & # 39 ;, & # 39; my_custom_menu_order & # 39 ;, 10, 1);

If you need to move menu items created manually or by using a plug-in, you can get the correct value to add to the array by debugging as …

debug_admin_menu_items () {function
eco & # 39;
& # 39; print_r ($ GLOBALS[ 'menu' ], TRUE) . & # 39;

& # 39 ;;
}

add_action (& # 39; admin_init & # 39 ;, debug_admin_menu_items & # 39;);

Note: the previous code is found in the functions of your theme.php