Title: wp-admin/includes/user.php | Developer.WordPress.org

---

# File: wp-admin/includes/user.php

 * hook[wp_authorize_application_redirect_url_invalid_protocols](https://developer.wordpress.org/reference/hooks/wp_authorize_application_redirect_url_invalid_protocols/)
 * Filters the list of invalid protocols used in applications redirect URLs.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_authorize_application_redirect_url_invalid_protocols/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_authorize_application_redirect_url_invalid_protocols/#uses)
   | Source: [wp-admin/includes/user.php:722](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L722-L722)
 * function[wp_is_authorize_application_redirect_url_valid()](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_redirect_url_valid/)
 * Validates the redirect URL protocol scheme.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_redirect_url_valid/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_redirect_url_valid/#uses)
   | Source: [wp-admin/includes/user.php:699](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L699-L752)
 * function[wp_is_authorize_application_password_request_valid()](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_password_request_valid/)
 * Checks if the Authorize Application Password request is valid.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_password_request_valid/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_is_authorize_application_password_request_valid/#uses)
   | Source: [wp-admin/includes/user.php:640](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L640-L686)
 * hook[wp_authorize_application_password_request_errors](https://developer.wordpress.org/reference/hooks/wp_authorize_application_password_request_errors/)
 * Fires before application password errors are returned.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_authorize_application_password_request_errors/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_authorize_application_password_request_errors/#uses)
   | Source: [wp-admin/includes/user.php:679](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L679-L679)
 * method[WP_Privacy_Data_Export_Requests_Table::column_email()](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_email/)
 * Actions column.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_email/#uses)
   | Source: [wp-admin/includes/user.php:1517](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L1517-L1542)
 * method[WP_Privacy_Data_Export_Requests_Table::column_next_steps()](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_next_steps/)
 * Displays the next steps column.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_next_steps/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_export_requests_table/column_next_steps/#uses)
   | Source: [wp-admin/includes/user.php:1551](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L1551-L1599)
 * method[WP_Privacy_Data_Removal_Requests_Table::column_email()](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_email/)
 * Actions column.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_email/#uses)
   | Source: [wp-admin/includes/user.php:1634](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L1634-L1664)
 * method[WP_Privacy_Data_Removal_Requests_Table::column_next_steps()](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_next_steps/)
 * Next steps column.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_next_steps/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_privacy_data_removal_requests_table/column_next_steps/#uses)
   | Source: [wp-admin/includes/user.php:1673](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L1673-L1721)
 * hook[edit_user_created_user](https://developer.wordpress.org/reference/hooks/edit_user_created_user/)
 * Fires after a new user has been created.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/edit_user_created_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/edit_user_created_user/#uses)
   | Source: [wp-admin/includes/user.php:253](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L253-L253)
 * function[use_ssl_preference()](https://developer.wordpress.org/reference/functions/use_ssl_preference/)
 * Optional SSL preference that can be turned on by hooking to the ‘personal_options’
   action.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/use_ssl_preference/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/use_ssl_preference/#uses)
   | Source: [wp-admin/includes/user.php:579](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L579-L586)
 * function[wp_revoke_user()](https://developer.wordpress.org/reference/functions/wp_revoke_user/)
 * Remove all capabilities from user.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_revoke_user/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_revoke_user/#uses)
   | Source: [wp-admin/includes/user.php:481](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L481-L486)
 * function[default_password_nag_handler()](https://developer.wordpress.org/reference/functions/default_password_nag_handler/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/default_password_nag_handler/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/default_password_nag_handler/#uses)
   | Source: [wp-admin/includes/user.php:495](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L495-L509)
 * function[default_password_nag_edit_user()](https://developer.wordpress.org/reference/functions/default_password_nag_edit_user/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/default_password_nag_edit_user/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/default_password_nag_edit_user/#uses)
   | Source: [wp-admin/includes/user.php:517](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L517-L530)
 * function[default_password_nag()](https://developer.wordpress.org/reference/functions/default_password_nag/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/default_password_nag/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/default_password_nag/#uses)
   | Source: [wp-admin/includes/user.php:537](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L537-L568)
 * hook[delete_user](https://developer.wordpress.org/reference/hooks/delete_user/)
 * Fires immediately before a user is deleted from the site.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/delete_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/delete_user/#uses)
   | Source: [wp-admin/includes/user.php:386](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L386-L386)
 * hook[post_types_to_delete_with_user](https://developer.wordpress.org/reference/hooks/post_types_to_delete_with_user/)
 * Filters the list of post types to delete with a user.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/post_types_to_delete_with_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/post_types_to_delete_with_user/#uses)
   | Source: [wp-admin/includes/user.php:406](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L406-L406)
 * hook[deleted_user](https://developer.wordpress.org/reference/hooks/deleted_user/)
 * Fires immediately after a user is deleted from the site.
 * Used by [2 functions](https://developer.wordpress.org/reference/hooks/deleted_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/deleted_user/#uses)
   | Source: [wp-admin/includes/user.php:469](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L469-L469)
 * function[add_user()](https://developer.wordpress.org/reference/functions/add_user/)
 * Creates a new user from the “Users” form using $_POST information.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/add_user/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/add_user/#uses)
   | Source: [wp-admin/includes/user.php:16](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L16-L18)
 * function[edit_user()](https://developer.wordpress.org/reference/functions/edit_user/)
 * Edit user settings based on contents of $_POST
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/edit_user/#used-by)
   | Uses [28 functions](https://developer.wordpress.org/reference/functions/edit_user/#uses)
   | Source: [wp-admin/includes/user.php:30](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L30-L256)
 * hook[check_passwords](https://developer.wordpress.org/reference/hooks/check_passwords/)
 * Fires before the password and confirm password fields are checked for congruity.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/check_passwords/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/check_passwords/#uses)
   | Source: [wp-admin/includes/user.php:175](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L175-L175)
 * hook[user_profile_update_errors](https://developer.wordpress.org/reference/hooks/user_profile_update_errors/)
 * Fires before user profile update errors are returned.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_profile_update_errors/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_profile_update_errors/#uses)
   | Source: [wp-admin/includes/user.php:232](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L232-L232)
 * function[get_editable_roles()](https://developer.wordpress.org/reference/functions/get_editable_roles/)
 * Fetch a filtered list of user roles that the current user is allowed to edit.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/get_editable_roles/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_editable_roles/#uses)
   | Source: [wp-admin/includes/user.php:274](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L274-L287)
 * hook[editable_roles](https://developer.wordpress.org/reference/hooks/editable_roles/)
 * Filters the list of editable roles.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/editable_roles/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/editable_roles/#uses)
   | Source: [wp-admin/includes/user.php:284](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L284-L284)
 * function[get_user_to_edit()](https://developer.wordpress.org/reference/functions/get_user_to_edit/)
 * Retrieve user data and filter it.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_user_to_edit/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_user_to_edit/#uses)
   | Source: [wp-admin/includes/user.php:297](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L297-L305)
 * function[get_users_drafts()](https://developer.wordpress.org/reference/functions/get_users_drafts/)
 * Retrieve the user’s drafts.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_users_drafts/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/get_users_drafts/#uses)
   | Source: [wp-admin/includes/user.php:317](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L317-L330)
 * hook[get_users_drafts](https://developer.wordpress.org/reference/hooks/get_users_drafts/)
 * Filters the SQL query string for the user’s drafts query.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/get_users_drafts/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/get_users_drafts/#uses)
   | Source: [wp-admin/includes/user.php:328](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L328-L328)
 * function[wp_delete_user()](https://developer.wordpress.org/reference/functions/wp_delete_user/)
 * Delete user and optionally reassign posts and links to another user.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_delete_user/#used-by)
   | Uses [18 functions](https://developer.wordpress.org/reference/functions/wp_delete_user/#uses)
   | Source: [wp-admin/includes/user.php:351](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L351-L472)
 * function[admin_created_user_email()](https://developer.wordpress.org/reference/functions/admin_created_user_email/)
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/admin_created_user_email/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/admin_created_user_email/#uses)
   | Source: [wp-admin/includes/user.php:594](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/user.php#L594-L620)