This page redirects to an external site: https://developer.wordpress.org/reference/functions/add_users_page/
Add sub menu page to the Users or Profile menu.
NOTE: If you're running into the »You do not have sufficient permissions to access this page.« message in a `wp_die()` screen, then you've hooked too early. The hook you should use is `admin_menu`.
<code style="color: #000000"> <span style="color: #0000BB"><?php add_users_page</span><span style="color: #007700">( </span><span style="color: #0000BB">$page_title</span><span style="color: #007700">, </span><span style="color: #0000BB">$menu_title</span><span style="color: #007700">, </span><span style="color: #0000BB">$capability</span><span style="color: #007700">, </span><span style="color: #0000BB">$menu_slug</span><span style="color: #007700">, </span><span style="color: #0000BB">$function</span><span style="color: #007700">); </span><span style="color: #0000BB">?></span> </code>
Typical usage occurs in a function registered with the 'admin_menu' hook (see Adding Administration Menus):
add_action('admin_menu', 'my_users_menu');
function my_users_menu() {
add_users_page('My Plugin Users', 'My Plugin', 'read', 'my-unique-identifier', 'my_plugin_function');
}
add_users_page() is located in wp-admin/includes/plugin.php.
Administration Menus: add_menu_page(), remove_menu_page(), add_submenu_page(), remove_submenu_page(), add_dashboard_page(), add_posts_page(), add_media_page(), add_links_page(), add_pages_page(), add_comments_page(), add_theme_page(), add_plugins_page(), add_users_page(), add_management_page(), add_options_page()