WordPress API Menu/Submenu Order
Here’s an example; First to figure out the order of the sub menu items based upon its array key you can do a var_dump on the $submenu global variable which will output the following; (I’m using the Posts menu and sub menu as an example) //shortened for brevity…. [“edit.php”]=> array(6) { [5]=> array(3) { [0]=> … Read more