Insert the URL of the page as the $menu_slug argument. Also note that user levels are deprecated, you should pass a capability instead.
function add_custom_link() {
add_submenu_page(
'edit.php?post_type=cpt_custom',
'',
'Pending Posts',
'edit_posts',
'edit.php?post_type=cpt_custom&post_status=pending',
''
);
}
add_action('admin_menu', 'add_custom_link');
Related Posts:
- How to remove admin menu pages inserted by plugins?
- Change top level menu item to point to custom submenu item
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- Import bootstrap 5 and bootstrap icons in wp-admin backend
- Remove Categories / Tags From Admin Menu
- Add an admin page, but don’t show it on the admin menu
- Making Custom Fields Standard in the Admin UI
- Add separator to admin submenu
- How to add custom submenu links in wp-admin menus?
- Add custom html to last sub-menu item
- Custom ReCaptcha Login
- Creating my own Admin Forms in a WordPress CMS?
- How to create sub menu with a URL parameter?
- How to make custom bulk actions work on the media/upload page?
- Removing fields from the Media Uploader/Gallery
- deleted users still show in count?
- Reorder custom submenu item
- Modify custom Users Manage page
- How to build custom WP admin with custom URLs
- Redirect members to custom page upon logging in through WP admin
- How to get value from custom backend menu
- Retrieve and display data from custom db table in admin area?
- Custom Dashboard Home Screen Options
- Add a page that appears in the backend admin that lists files to download? WP 3.3
- How to add another page in appearance tab of admin panel?
- Adding “Interesting Tags” & “Ignored Tags” like StackOverflow.com in a WordPress Blog?
- How do I change the default admin color scheme in MP6
- Custom Theme Want To Remove One Category From All Displays
- Why is the Links Manager visible?
- $wp_customize->remove_section for customizer setting?
- Extend Screen Options
- Adding custom styles to dropdown in editor
- Remove All in One Pack from the admin bar
- Insert & order custom post types in/as submenu
- how to add custom css and js on wordpress post editor directly without using .php file
- How to customize core admin pages within a theme?
- Allow non-admins to access the Customize theme page
- How to change popular term checklist title when edit post?
- WordPress customizer Preview not loading
- Remove add news page and posts from menu
- Possibilities for the edit.php admin panel? [closed]
- Adding a submenu to the Tools menu returns tools.php in a popup box
- Sub menu indicator that links to sub menu
- How to use default WP form elements to interact with custom DB table?
- Extend WordPress Core Classes in OOP Theme?
- Looking replicate static HTML Menu into WordPress Dynamic Menu [closed]
- Change order of custom submenu link in WP Admin?
- Customizing Users in Admin Area
- Custom Columns WordPress Admin
- Restrict Viewing of post on both front and backend?
- add custom content to appearance/widgets screen
- add an option to the read page
- theme customizer – can a single option pass multiple values?
- How can i create menu like in the example?
- Customizing admin look and feel for just one particular type of user
- Usage of custom post types in a custom admin menu
- Mimicking admin panel menu from wordpress 3.0.1
- Open login logo URL in new tab
- Change admin_title of a plugin using code snippet/functions
- Custom admin menu items
- Delete a column in edit.php generated with a plugin
- Add admin page for specific post status (for example)
- Add helper text in custom-header section in admin
- How to show Term ID beside Name Category with wp_dropdown_categories()
- How to create custom backend admin menu in different languages?
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- POST 429 Error when trying to place more than 20 images into post at once
- Admin menu hilighting wrong item for CPT
- Figuring out how to create “Option Pages” in WordPress admin
- How to fix custom add menu page preventing media library from loading
- admin aoolbar add_node() and pulling in my post slug
- How to have submenus collapsed until they are clicked?
- Check get_post value after wp-admin login
- My connecting URL form in html to PHP does not work
- Custom Admin Section
- where can i find the login page in wordpress and add my header to it
- Style Radio Buttons inside Edit Page (Custom Fields)
- How to keep the plugin submenu open on viewing a custom version of users.php?
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Create Custom Admin Fields
- How to create functions that affect only a specific user
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- How do you get formatted content of a post using the WordPress API?
- TinyMCE style_select – Append Classes
- WP_Widget Deprecated
- Style reset password page? /wp-login.php?action=rp
- How To Add buttons to the toolbar which appears in TinyMce when you click over images
- How to insert a sitemap within a subsite when using WordPress multisite
- Child Theme – how to add new widget on a specific place?
- @font-face is not working in WordPress
- How-To add Custom field in WordPress wp-ecommerce Categories?
- One WordPress Installation for 2 Domains
- result from custom filter admin table list backend does not work
- Remove or move admin submenus under a new menu
- Remove year from title
- WP Search Form Query: Add Author’s posts into search query
- Custom product status get filtered on all product list views
- How to duplicate “Pages” section in the control panel?
- Changes to code not displaying
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?