This is the 3rd part of wordpress customization series. Now we are going to change the order of wordpress dashboard menus. we can change the order using menu_order filter. Before using menu_order filter, we need to activate custom_menu_order first.
Go to your functions.php file and put the following code.
function custom_menu_dashbaord_order($menu_order) { if (!$menu_order) return true; return array( 'index.php', // Dashboard 'separator1', // First separator 'edit.php', // Posts 'upload.php', // Media 'link-manager.php', // Links 'edit.php?post_type=page', // Pages 'edit-comments.php', // Comments 'separator2', // Second separator 'themes.php', // Appearance 'plugins.php', // Plugins 'users.php', // Users 'tools.php', // Tools 'options-general.php', // Settings 'separator-last', // Last separator ); } add_filter('custom_menu_order', 'custom_menu_dashbaord_order'); // Activate custom_menu_order add_filter('menu_order', 'custom_menu_dashbaord_order');
You can put your favourite menu order using the above array.
wordpress customization part -2 Renaming dashboard menus
Hope guys it will help you to solve your problem. If you feel any problem, you can write me on comment box and if you found this useful, please share it with your friends.
Please follow and like us: