You must use a different parent slug (first parameter) to keep the user menu as you want.
An example,
add_action('admin_menu', 'register_subscriber_submenu_page');
function wpdocs_register_subscriber_submenu_page() {
add_submenu_page(
'users.php',
'Subscribers',
'Subscribers',
'manage_options',
'custom-submenu-page',
'custom_callback_function'
);
}
Try to prefix your plugin page slug, you can have conflict with such a name : ‘subscribers’ -> your-plugin-subscribers
.
You will find more details add_submenu_page
Hope it helps
Related Posts:
- How to check if a user is in a specific role?
- How to restrict dashboard access to Admins only?
- Admin Page Redirect
- Check if user is admin by user ID
- How to add custom submenu links in wp-admin menus?
- How to display the user that published a pending post?
- How to create sub menu with a URL parameter?
- Custom user role that can only edit specific (non-custom-type) page and all child pages [duplicate]
- Reorder custom submenu item
- Add a button to users.php
- create users to site with specific language
- Display sortable User meta column in admin panel user’s page
- How to display multiple custom columns in the wp-admin users.php?
- Hooking into register_admin_color_schemes
- Prevent Admin gui output from page added using add_submenu_page
- Removing user fields [duplicate]
- wp-admin edit user url wont show up correct url [closed]
- Users Unable to Access Dashboard/Posts/Pages
- Stop loading “collaborators” users on add new post or page?
- Change top level menu item to point to custom submenu item
- Distinguish profile user and admin user IDs / get ID of user being edited
- Uncheck the box “Send User Notification” by default on new-user.php
- Detecting all admins that are logged in
- Admin Panel – Custom Menu Sub-Item LINK
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- Stopping user deletion from running on error
- Remove All in One Pack from the admin bar
- Filter dropdown in users.php “delete user” bulk edit screen
- Add count for new registered user in Users tab
- Users disappeared from wp-admin
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- WP admin user search doesn’t return all users
- Hide username discovery
- How to get Role Subscribe Users on Admin Menu only in Pages in WordPress
- I accidentally deleted an admin user and all their content is now gone from the site. [closed]
- Restrict submitters from wp-admin [duplicate]
- add_submenu_page() issue
- Nickname field isn’t appearing in Admin
- How to allow WordPress updates to only one specific administrator?
- Is there a filter to edit html of user-edit.php
- Create new user from phpMyAdmin
- How do I make it so that the all users page is not a white screen?
- define two login page url
- Sub menu is not working properly
- Newly created user role not displaying on users screen
- How to check if a user is in a specific role?
- On Users (user.php) in wp-admin disable/hide “Bulk Actions” and “Change Role To”
- How to change the URL of sub menu page?
- Login issue with subdomain installs
- Hook into form handle from admin users table
- restrict admin panel sections to users
- CSRF attack to create USER
- Cannot login in WordPress even after changing hash password in phpmyadmin
- WordPress User profile page fields missing
- Anyone Can Register
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the “users search” input box
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- WordPress Users page missing user count next to different types of users
- Searching for a custom meta from user.php in the admin
- Changing Admin Menu Labels
- Is there ANY way to remove comments function and section totally?
- Add an admin page, but don’t show it on the admin menu
- js error on post editing page
- How to add a custom metabox to the Menu Management admin screen?
- How to change the wording in wp-admin back-end?
- How to make ajax call in wordpress in right way?
- Bulk Delete Users Error uri too large
- Change the Return URL from the Customizer
- Where can I edit Admin Panel Page file
- Failed to load resource admin-ajax.php
- Custom WordPress Dashboard for Specific user role
- 404 of wp-admin pages [closed]
- Execute script only on certain admin pages
- Sortable columns and admin like interface for tables/report in custom plugin?
- Remove favorites action menu and screen options panel
- How can I replace dashboard.css and dashboard.min.css (not add new css)
- ‘wp’ hook supposed to trigger when editing a post?
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- always by default show welcome panel in the dashboard
- Dashboard Widget CSS
- Move WooCommerce menu entries to top of dashboard
- Add a sub menu page to the Users menu
- Change maxlength of link_description in dashbord link section?
- Should I move wp-admin to a separated server? How to do it?
- WP-Admin throws 404 after changing wp-config Salts
- How to create a new section on the wordpress admin dashboard?
- What event I can tap into that fires before loading wp-admin page?
- How to fix the view of admin all posts
- mixed contents admin panel is Unsecured
- Link with password is not sent to the new user
- Can I rename the wp-admin folder?
- How do I list subpages in post editor view?
- Why does my edit screen suddenly have such a buggy interface?
- Using meta_query in add_query_arg
- How to Filter in the “Add Media Popup” to show only “unattached” Media
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard