You can intercept the global $submenu
var and add the desired elements:
add_action('admin_menu', 'add_custom_submenus', 999);
function add_custom_submenus() {
global $submenu;
$submenu['edit.php'][] = array(
__('Published'), // menu title
'edit_posts', // menu cap
'edit.php?post_status=publish&post_type=post' // menu link
);
$submenu['edit.php'][] = array(
__('Scheduled'),
'edit_posts',
'edit.php?post_status=future&post_type=post'
);
$submenu['upload.php'][] = array(
__('Unattached'),
'upload_files',
'upload.php?detached=1'
);
}
Related Posts:
- Add a Separator to the Admin Menu?
- Adding a custom admin page
- How to remove entire admin menu?
- Plugin to remove Admin menu items based on user role?
- Add my own button next to “Screen options” and “Help” in the admin
- How to show custom menu items in the WordPress android app?
- Remove ability to access certain admin menus
- Appearance->Editor not visible
- Custom WP_List_Table displays blank rows
- How do I set up a webhook?
- Admin pages have no content
- WordPress Left Hand Side Admin Menu Always Collapsed
- Reorder plugin items in the admin menu
- Re-ordering Admin Submenu Sections
- Reference external file as a function
- Add number new posts (post_status = pending) to administration menu [duplicate]
- add_submenu_page set for multiple roles [duplicate]
- How To Create User Specific Admin User Pages?
- Change the Default Pages Menu View in wp-admin
- How to change admin menu position of “Media”?
- Change top level menu item to point to custom submenu item
- Associating custom submenu item with post type of top level menu item
- Admin doesn’t have sufficient permissions to plugin’s page
- Remove Admin sidebar link
- Single category’s posts list in admin menu
- Dashboard menu missing
- WordPress Remove Submenus
- page not updating with database
- Why am I timing out when using the Menu Editor?
- 500 internal server error on wp-admin only
- How can I POST or GET to the same admin page from which I am POST-ing or GET-ing
- Output the admin menu_position for each item
- avoiding the display of certain categories to certain user roles at content entry time
- How can I add a menu item to the admin area?
- Backend Checkboxes working – but not visual?
- WordPress Admin Menu Order for ‘admin.php’ pages
- Give admin_menu permission to specific users
- Show all admin menus in a table
- Highlight active Admin Menu when added though add_menu_page
- require/include php file in add_menu()
- Create WordPress Menu Item Without Linking to a Custom Page
- Simple CSS admin pagination
- How to change the default url for ‘Posts’ link?
- Unsure how to add simple checkboxes that write to a small table to admin
- Reference external file as a function
- Display admin sidebar into custom post pages if logged
- What are the standard admin CSS id/class tags?
- how to know if admin is in edit page or post [duplicate]
- The website cannot display the page
- Set Default Admin Colour For All Users
- Settings API – easiest way of validating checkboxes?
- Uploading files in admin panel?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- Redirect Admin User in Dashboard
- Read only capability for custom post in admin area
- How can ‘admin_email’ be set?
- Conditional check for front-end which includes ajax
- Hide update messages from non-admin users?
- Daily notices of failed login attempts for non-existent admin user
- “Automatically add new top-level pages” Default
- Get email address of type Administrator
- Custom Post Type and taxonomies’s labels localization not working
- Is there a way to have admins that are logged in to wordpress not have to enter the password for password protected pages while browsing the website?
- How to receive security update notification email?
- Include admins in author drop-down on edit post screen
- How to restrict wp-admin and prevent upload errors
- Adding another “Add Post” button to admin
- How to determine if an admin is logged in outside the loop
- What determines whether admin toolbar is shown to a logged-in user?
- Adding text in more than one language (at the same time)
- How to get view count of every page on site and add that (increasing) number to Dashboard Widget
- Restrict function call to page load but not ajax call
- How do I remove All and Published if not admin?
- How to disable https from wordpress site?
- Fatal error: Exception thrown without a stack frame in Unknown on line 0
- Settings API not saving values to database
- Unable to upload image using the standard uploader in the WP admin (v4.3)
- Featured image on post edit page not loading over HTTPS
- How do I diagnose a plugin resource 404?
- Post editor is 89953px tall. How to fix?
- How to make sure your admin doesn’t hi-jack you site?
- Admin bar is disabled in front
- Add JavaScript in admin in custom plugin [duplicate]
- Remove iPhone detection on login page
- How can all E-mails be sent with BCC copy to Admin?
- Login to admin by frontend form?
- Doesn’t call user information to include “wp-load.php” in an external php file
- Show admin bar to editors with Buddypres
- Redirect non-admin after login, and in url – /admin
- Admin hook after editing an image?
- Form submit in admin does not set is_admin() true
- Disabling “View” mentions from backend?
- Is It Possible To A Link To The Homepage From The Admin Sidebar?
- WordPress gallery image link gives 404 when not logged in
- Custom Div with links on Admin Bar
- WordPress admin loads erratically “connection reset by peer”
- Remove “minor-publishing” div from Publish admin metabox
- Can’t access my wp admin: captcha images invisible, gives me error message
- You do not have permission to access this document on form submit
- Woo Commerce Settings for Check-out Form [closed]