[Update]
Answer rewritten, based on this other Q&A.
To achieve this:
Use this code:
add_filter( 'custom_menu_order', 'wpse_48933_submenu_order' );
function wpse_48933_submenu_order( $menu_ord )
{
global $submenu;
// Enable the next line to inspect the $submenu values
// echo '<pre>'.print_r($submenu,true).'</pre>';
$arr = array();
$arr[] = $submenu['edit.php?post_type=page'][10];
$arr[] = $submenu['edit.php?post_type=page'][5];
$submenu['edit.php?post_type=page'] = $arr;
return $menu_ord;
}
Related Posts:
- Appearance->Editor not visible
- Admin pages have no content
- how to redirect to url.com/wp-admin if url.com/admin is typed in?
- How To Create User Specific Admin User Pages?
- Change top level menu item to point to custom submenu item
- Associating custom submenu item with post type of top level menu item
- 500 internal server error on wp-admin only
- Redirect from the dashboard to edit.php if wp_is_mobile() is true
- Pages redirect me to the homepage
- What are the standard admin CSS id/class tags?
- How to remove admin menu pages inserted by plugins?
- Add a Separator to the Admin Menu?
- Modal window from within WordPress admin
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Admin Page Redirect
- Adding a custom admin page
- How to remove entire admin menu?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to Change the Default Home Page for the WordPress Dashboard?
- How To Remove WordPress Version From The Admin Footer
- Set Default Admin Colour For All Users
- Securing Admin Accounts – Username Discovery
- Can an admin check passwords of registered users?
- How-to make the admin area mobile friendly [closed]
- Plugin to remove Admin menu items based on user role?
- How to obtain the user ID of the current profile being edited in WP-Admin?
- 3.3: How do you hide the new dashboard welcome panel?
- Add my own button next to “Screen options” and “Help” in the admin
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- WordPress admin screen very slow / timing out when editing or adding a new page/custom post
- Redirect Admin User in Dashboard
- Is it OK to move admin menu items?
- How to show custom menu items in the WordPress android app?
- Modify built-in post type properties
- How to remove items from +New admin menu?
- Remove ability to access certain admin menus
- Custom WP_List_Table displays blank rows
- How do I set up a webhook?
- Make sub menu items a main link in the admin menu using fuctions.php
- Add column to pages table
- Admin account only shows Profile and Dashboard with no activity
- Possible to create placeholder images in WordPress editor that are clickable (should bring up uploader)?
- WordPress Left Hand Side Admin Menu Always Collapsed
- Blocking Administrative Access to Authors and Subcribers?
- Only allow new subpages to be created
- Add custom admin menu item for pages using a certain template
- Reorder plugin items in the admin menu
- How to find out if an wp-admin action edited a file?
- Re-ordering Admin Submenu Sections
- How to display only logged in user’s post comments in comments area
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Hide pages depending on role
- WordPress 3.8 get current admin color scheme
- Reference external file as a function
- How to Use Resposive Tables in WordPress ADMIN Pages?
- How to change redirect after moving a page to trash?
- How to prevent parent admin page from appearring as a child admin page
- Why I can’t change the permalink of this page?
- Add number new posts (post_status = pending) to administration menu [duplicate]
- How to put placeholder text in the main post input area?
- How can I access profile Admin Colour Scheme
- Backend option to include a javascript file on specific pages?
- Page only shows when user is logged in (even with visibility set to public)
- How to make certain page templates visible to admin only
- I keep getting logged out in Firefox
- add_submenu_page set for multiple roles [duplicate]
- Add tabbed menu to admin page
- remove_action with profile_personal_options
- Getting the different post statuses + count like in edit.php, in a custom submenu page
- What is the optimal way to filter out subpages from admin?
- Help extending custom drag-drop page ordering on admin page list screen
- How to change admin menu position of “Media”?
- Conditionally load CSS/JS/PHP in wp-admin if using a mobile device
- How to disable automatic excerpt generation *in admin*?
- Add a Menu Link (to a WordPress Page) in the Admin Menu/Sidebar
- Limit Words in Category / Term Description – Admin Panel
- Admin page redirect to another admin page
- Create a admin page in wordpress without admin menus (“wordpress sidebars”)
- Adding text in more than one language (at the same time)
- Admin doesn’t have sufficient permissions to plugin’s page
- wp-admin post.php JavaScript Links Not Working
- Remove Admin sidebar link
- Single category’s posts list in admin menu
- Super slow admin panel
- Admin Taxonomy Terms – Orderby Term Field
- How do I add an admin notice within javascript in the admin interface for posts?
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Hide Pages on Edit Pages based on Capability (edit_others_pages)?
- Add column to pages table
- Dashboard menu missing
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- WordPress Admin Login Redirect Problem
- Ad custom admin page like WordPress customizer [closed]
- Unable to Access WP Admin or Login buttons after Migration
- Add ‘Last Modified’ and Attachments (Yes/No) to WordPress Users Column
- Editors change a permalink on an unpublished post, but only admins change a permalink on a post that has ever been published?
- How Can I Found Admin Directory
- WordPress post feature image not uploading
- Combine and Minify wp-admin files, also re-write URI’s for CDN
- WordPress Remove Submenus