Customize the order of the admin menu

This code will allow you to reorganize the order of elements in the admin menu. All that you need to do is click on an existing link in the admin menu and copy everything before the /wp-admin/ URL. The order below represents the order the new admin menu will have.

<br />// CUSTOMIZE ADMIN MENU ORDER<br /> function custom_menu_order($menu_ord) {<br />     if (!$menu_ord) return true;<br />     return array(<br />         'index.php', // this represents the dashboard link<br />         'edit.php?post_type=events', // this is a custom post type menu<br />         'edit.php?post_type=news',<br />         'edit.php?post_type=articles',<br />         'edit.php?post_type=faqs',<br />         'edit.php?post_type=mentors',<br />         'edit.php?post_type=testimonials',<br />         'edit.php?post_type=services',<br />         'edit.php?post_type=page', // this is the default page menu<br />         'edit.php', // this is the default POST admin menu<br />     );<br /> }<br /> add_filter('custom_menu_order', 'custom_menu_order');<br /> add_filter('menu_order', 'custom_menu_order');<br /><br />

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: