I have created and registered an admin page as a sub-menu under ‘Posts’ admin menu.
But the problem is its coming at the end of the wp-submenus(ie., after ‘Tags’),
How to change the order of this custom admin page submenu entry to appear after ‘Add new’ ?
I’m using this function to register my sub-menu under edit.php(Posts menu)
add_submenu_page(
'edit.php',
"my custom submenu",
"my custom submenu",
CAPABILITY,
'my_custom_submenu',
"scrollcore_newsroom_articles"
);
Found the solution, just need to add this function to your functions.php
Here by choosing edit.php, I’m targeting ‘Posts’ menu.
You can choose any file that you want its sub-menu to be reordered, like plugins.php, themes.php, tools.php etc