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
- Can a user submit requests to wp-admin/admin.php without logging in?
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- My wordpress site gets redirected automatically to the old site any known solution for this?
- Use a different domain for SSL
- How to list ALL Pages in the dashboard?
- Adding a menu item in the admin bar
- Excerpt textarea missing on post editing page in admin panel
- How to disable 3.3 Tooltips?
- wp login redirects to homepage
- Dashboard links not working
- Displaying which Role the current user is assigned to
- submit for review issue
- wp-admin does not redirect to dashboard
- Change WP-Login or WP-Admin
- Custom roles showing HTML entities in title form field
- How can I remove the user avatar from admin toolbar?
- List User order by ID in Descending order (Backend)
- using wp_sprintf at wordpress option page,
- Disable wordpress reordering functions in backend screen element
- transition_post_status not working via Quick Edit
- wp-admin dashboard redirects to homepage
- Renaming wp-admin without hard-coding it. Is it really possible?
- How to hide Admin Tabs? [duplicate]
- Restrict admin access to certain pages based on page slug
- Available resources for learning WordPress 4.7.2 from the ground up?
- How to have WP admin in English while public website is in another language?
- How to access wp-admin from original website after setting the domain redirect/forwarding
- Remove “Filter” Button on All Posts in wp-admin
- How can I fix, Sorry, you are not allowed to access this page. I have tried the usual
- only last option from theme options is being saved to the DB
- wp-login.php entering password nothing happens
- Cached php? Updates are rendering only if logged as admin
- Random HTTPs redirections at admin area in shared hosting
- add_post_meta displays in admin edit area
- Forcing WordPress Administration onto a separate SSL Host
- How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?
- What is the point of new confirm admin email process?
- ‘Too many redirects’ error after changing site URL in WordPress [closed]