Trying to simulate the issue, it happened the same (wp-admin/submenu_slug
), and the solution is to add a priority value in the hook admin_menu
.
Here, I’m adding a sub menu to the plugin BackWPup. Note the priority 11
:
add_action('admin_menu', 'third_party_submenu_wpse_91377', 11 );
function third_party_submenu_wpse_91377()
{
add_submenu_page(
'backwpup', // Third party plugin Slug
'My plugin',
'My plugin',
'delete_plugins',
'third_party_submenu',
'plugin_options_wpse_wpse_91377'
);
}
function plugin_options_wpse_wpse_91377()
{
echo '<h1>OK</h1>';
}
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Hide Theme options and Customize Admin menu
- Polylang : Interverting languages after development [closed]
- Dynamic admin submenu
- Add menu page issues (permissions & position)
- Display Plugin Panels Outside of Admin Areas
- How to remove a CPT Menu from the Root Admin only
- Admin menu hilighting wrong item for CPT
- Getting 404 page not found error while trying to access add new plugin / themes
- Submitting form to admin-post.php WordPress
- How to use add_submenu_page() for editors?
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Cannot access my wp-admin after installing Gzip compression [closed]
- Add sub menu page in your plugin
- What’s causing this error? “Warning: Invalid argument”
- Plugin settings won’t save changes
- Is there any way to make myself an admin?
- Full list of registered scripts or styles, but from an admin options page
- Move plugin-settings to ‘Settings’-menu in the admin
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Editing a text file from plugin menu
- WordPress Admin Menu defining function is seperate file
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- creating a plug in that would tap into save/update action of posts [closed]
- How can I modify page content in the admin panel?
- How to display terms and conditions in post area?
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin Admin Menu Boiler Plate
- add_submenu_page returns null
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- Change the layout of action links under the plugin names
- Plugin – Admin menu page broken url
- getting notifications about updates only in the “core” page
- How do I add an options page at the bottom of the list?
- Remove value from array within post meta ajax admin
- Is there a better way of handling AJAX requests in WordPress?
- Redirect Plugins.php to New Plugin Page
- Mowing site to another domain in simplest way
- Show WordPress Plugin Menu(Admin) To Editor
- Add logo to admin menu in my plugin
- Get access to WordPress when logged out
- Why are plugin settings not all nested in one place?
- Cannot access WP admin because plugin returns 204
- Install old version of plugin from admin panel?
- How do you add a settings page to another menu?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Edit page header on a custom plugin
- Custom page in plugin visible in menu
- I cannot include a file in my plugin settings page
- Adding custom Field To The Posts Listing
- 404 errors when updating options in admin dashboard
- Error activating certain plugins
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- how to move a plugin-block in Edit Post page back to bottom area?
- force logged in user to stay in the dashboard
- Creating an admin button that when clicked shows a popup form
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function
- Can we hide a certain user in WP?
- Calling PHP function with AJAX
- How to properly enqueue jQuery knob on WordPress without conflict?
- WordPress Dashboard add user password not working, etc
- add menu page not showing Icon
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- Add custom WordPress admin page with pretty url via code
- How to find where an image is used by it’s url
- Get full URL of WP plugin admin page
- WordPress Admin login redirect to homepage
- WordPress Plugin PHP Not Calling Function
- Custom Icon assigned to menu items not working for multi-site networks
- Is admin section completely customizable in terms of styling?
- Store admin page into variable
- Not able to upload Plugins/ Theme from Admin backend
- Admin login substantially slower on production server
- wordpress plugin translation not working
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- How can I share my wordpress site with a friend?
- Creating Admin Submenu Page via Class Method
- Continous audio play in pages
- Set plugin page as homepage
- Disable plugin on admin page
- Plugin option for input box validation
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Ajax return 0 in plugin – ajax only used in wp-admin
- wp-admin will not redirect to wp-login.php
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Assigning a custom post type to a custom page