Problem with rearanging WP Admin Menu with Nested Pages
-
Hi Kyle,
I’m trying to rearange admin menu however when I have your plugin active I have big problems with “Pages” link and submenus.
It seems that the usual code stopped working and I cannot target the Pages menu any longer.
For example the code below no longer works:
add_submenu_page( ‘edit.php?post_type=page’, ‘Media’, ‘Media’, ‘moderate_comments’, ‘upload.php’);I’m trying to move Pages menu to first position in the menu and add in submenu Uploads menu (upload.php – it makes sense in my setup) however whatever I’m trying to do I cannot get any results. After print_r $menu and $submenu I’m getting some very weird data.
When I print_r $menu I see that position 20 in array is held by “Pages” with url “nestedpages” and when I print_r $submenu I see that the edit.php?post_type=page is intact and [nestedpages] has some additional array with position 50 and exact url to edit page.
What’s going on?
Help would be greatly appreciated.
Have a nice day,
Chris
The topic ‘Problem with rearanging WP Admin Menu with Nested Pages’ is closed to new replies.