I have a site with eight custom post types. Each is registered with 'menu_position' => 5
(below the Post menu). A side effect of having more than four CPTs is that the Media menu now appears in the middle of the list of CPTs (see image).
My solution is to duplicate the Media menu item in a lower position, then unset the original Media menu item:
add_action( 'admin_head', 'change_menu_items' );
function change_menu_items() {
global $menu;
$menu[14] = $menu[10];
unset( $menu[10] );
}
My question is: is this likely to cause any unforeseen side effects? I haven’t come across any yet, but just wanted to make sure.
Thanks!
this might work: