Title: Users | Developer.WordPress.org

---

# @package: Users

 * method[WP_User_Query::get_cache_last_changed()](https://developer.wordpress.org/reference/classes/wp_user_query/get_cache_last_changed/)
 * Retrieves the last changed cache timestamp for users and optionally posts.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_user_query/get_cache_last_changed/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/classes/wp_user_query/get_cache_last_changed/#uses)
   | Source: [wp-includes/class-wp-user-query.php:1075](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-user-query.php#L1075-L1107)
 * hook[pre_count_many_users_posts](https://developer.wordpress.org/reference/hooks/pre_count_many_users_posts/)
 * Filters whether to short-circuit performing the post counts.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/pre_count_many_users_posts/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/pre_count_many_users_posts/#uses)
   | Source: [wp-includes/user.php:681](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L681-L681)
 * function[get_user()](https://developer.wordpress.org/reference/functions/get_user/)
 * Retrieves user info by user ID.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_user/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_user/#uses)
   | Source: [wp-includes/user.php:859](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L859-L861)
 * function[user_can_for_site()](https://developer.wordpress.org/reference/functions/user_can_for_site/)
 * Returns whether a particular user has the specified capability for a given site.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/user_can_for_site/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/user_can_for_site/#uses)
   | Source: [wp-includes/capabilities.php:1045](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/capabilities.php#L1045-L1070)
 * function[current_user_can_for_site()](https://developer.wordpress.org/reference/functions/current_user_can_for_site/)
 * Returns whether the current user has the specified capability for a given site.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/current_user_can_for_site/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/current_user_can_for_site/#uses)
   | Source: [wp-includes/capabilities.php:939](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/capabilities.php#L939-L949)
 * function[wp_cache_set_users_last_changed()](https://developer.wordpress.org/reference/functions/wp_cache_set_users_last_changed/)
 * Sets the last changed time for the ‘users’ cache group.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_cache_set_users_last_changed/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_cache_set_users_last_changed/#uses)
   | Source: [wp-includes/user.php:5198](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5198-L5200)
 * function[wp_is_password_reset_allowed_for_user()](https://developer.wordpress.org/reference/functions/wp_is_password_reset_allowed_for_user/)
 * Checks if password reset is allowed for a specific user.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_is_password_reset_allowed_for_user/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_is_password_reset_allowed_for_user/#uses)
   | Source: [wp-includes/user.php:5210](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5210-L5232)
 * hook[wp_update_user](https://developer.wordpress.org/reference/hooks/wp_update_user/)
 * Fires after the user has been updated and emails have been sent.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_update_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_update_user/#uses)
   | Source: [wp-includes/user.php:2920](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L2920-L2920)
 * method[WP_User_Query::generate_cache_key()](https://developer.wordpress.org/reference/classes/wp_user_query/generate_cache_key/)
 * Generate cache key.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_user_query/generate_cache_key/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_user_query/generate_cache_key/#uses)
   | Source: [wp-includes/class-wp-user-query.php:1056](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-user-query.php#L1056-L1065)
 * function[wp_register_persisted_preferences_meta()](https://developer.wordpress.org/reference/functions/wp_register_persisted_preferences_meta/)
 * Registers the user meta property for persisted preferences.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_register_persisted_preferences_meta/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_register_persisted_preferences_meta/#uses)
   | Source: [wp-includes/user.php:5158](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5158-L5191)
 * hook[wp_list_users_args](https://developer.wordpress.org/reference/hooks/wp_list_users_args/)
 * Filters the query arguments for the list of all users of the site.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_list_users_args/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_list_users_args/#uses)
   | Source: [wp-includes/user.php:945](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L945-L945)
 * hook[send_retrieve_password_email](https://developer.wordpress.org/reference/hooks/send_retrieve_password_email/)
 * Filters whether to send the retrieve password email.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/send_retrieve_password_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/send_retrieve_password_email/#uses)
   | Source: [wp-includes/user.php:3293](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L3293-L3293)
 * hook[retrieve_password_notification_email](https://developer.wordpress.org/reference/hooks/retrieve_password_notification_email/)
 * Filters the contents of the reset password notification email sent to the user.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/retrieve_password_notification_email/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/retrieve_password_notification_email/#uses)
   | Source: [wp-includes/user.php:3412](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L3412-L3412)
 * function[wp_maybe_update_user_counts()](https://developer.wordpress.org/reference/functions/wp_maybe_update_user_counts/)
 * Updates the total count of users on the site if live user counting is enabled.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_maybe_update_user_counts/#used-by)
   | Uses [6 functions](https://developer.wordpress.org/reference/functions/wp_maybe_update_user_counts/#uses)
   | Source: [wp-includes/user.php:1485](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L1485-L1505)
 * function[wp_update_user_counts()](https://developer.wordpress.org/reference/functions/wp_update_user_counts/)
 * Updates the total count of users on the site.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_update_user_counts/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_update_user_counts/#uses)
   | Source: [wp-includes/user.php:1516](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L1516-L1539)
 * function[wp_schedule_update_user_counts()](https://developer.wordpress.org/reference/functions/wp_schedule_update_user_counts/)
 * Schedules a recurring recalculation of the total count of users.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_schedule_update_user_counts/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_schedule_update_user_counts/#uses)
   | Source: [wp-includes/user.php:1546](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L1546-L1554)
 * function[wp_is_large_user_count()](https://developer.wordpress.org/reference/functions/wp_is_large_user_count/)
 * Determines whether the site has a large number of users.
 * Used by [4 functions](https://developer.wordpress.org/reference/functions/wp_is_large_user_count/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/functions/wp_is_large_user_count/#uses)
   | Source: [wp-includes/user.php:1566](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L1566-L1591)
 * hook[wp_is_large_user_count](https://developer.wordpress.org/reference/hooks/wp_is_large_user_count/)
 * Filters whether the site is considered large, based on its number of users.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_is_large_user_count/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_is_large_user_count/#uses)
   | Source: [wp-includes/user.php:1590](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L1590-L1590)
 * function[wp_is_application_passwords_supported()](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_supported/)
 * Checks if Application Passwords is supported.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_supported/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_supported/#uses)
   | Source: [wp-includes/user.php:5086](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5086-L5088)
 * hook[insert_custom_user_meta](https://developer.wordpress.org/reference/hooks/insert_custom_user_meta/)
 * Filters a user’s custom meta values and keys immediately after the user is created
   or updated and before any user meta is inserted or updated.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/insert_custom_user_meta/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/insert_custom_user_meta/#uses)
   | Source: [wp-includes/user.php:2580](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L2580-L2580)
 * function[wp_list_users()](https://developer.wordpress.org/reference/functions/wp_list_users/)
 * Lists all the users of the site, with several options available.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_list_users/#used-by)
   | Uses [9 functions](https://developer.wordpress.org/reference/functions/wp_list_users/#uses)
   | Source: [wp-includes/user.php:913](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L913-L1018)
 * hook[user_erasure_fulfillment_email_headers](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_headers/)
 * Filters the headers of the data erasure fulfillment notification.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_headers/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_headers/#uses)
   | Source: [wp-includes/user.php:4667](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L4667-L4667)
 * hook[user_request_confirmed_email_content](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_content/)
 * Filters the body of the user request confirmation email.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_content/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_request_confirmed_email_content/#uses)
   | Source: [wp-includes/user.php:4369](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L4369-L4369)
 * hook[user_erasure_fulfillment_email_subject](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_subject/)
 * Filters the subject of the email sent when an erasure request is completed.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_subject/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_subject/#uses)
   | Source: [wp-includes/user.php:4508](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L4508-L4508)
 * hook[user_erasure_fulfillment_email_content](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/)
 * Filters the body of the data erasure fulfillment notification.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/user_erasure_fulfillment_email_content/#uses)
   | Source: [wp-includes/user.php:4609](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L4609-L4609)
 * hook[lostpassword_user_data](https://developer.wordpress.org/reference/hooks/lostpassword_user_data/)
 * Filters the user data during a password reset request.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/lostpassword_user_data/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/lostpassword_user_data/#uses)
   | Source: [wp-includes/user.php:3241](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L3241-L3241)
 * hook[wp_is_application_passwords_available](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available/)
 * Filters whether Application Passwords is available.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available/#uses)
   | Source: [wp-includes/user.php:5108](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5108-L5108)
 * function[wp_is_application_passwords_available_for_user()](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available_for_user/)
 * Checks if Application Passwords is available for a specific user.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available_for_user/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available_for_user/#uses)
   | Source: [wp-includes/user.php:5122](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5122-L5144)
 * hook[wp_is_application_passwords_available_for_user](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available_for_user/)
 * Filters whether Application Passwords is available for a specific user.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available_for_user/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/wp_is_application_passwords_available_for_user/#uses)
   | Source: [wp-includes/user.php:5143](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5143-L5143)
 * function[wp_is_application_passwords_available()](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available/)
 * Checks if Application Passwords is globally available.
 * Used by [5 functions](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_is_application_passwords_available/#uses)
   | Source: [wp-includes/user.php:5100](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/user.php#L5100-L5109)

1 [2](https://developer.wordpress.org/reference/package/users/page/2/?output_format=md)
[3](https://developer.wordpress.org/reference/package/users/page/3/?output_format=md)…
[10](https://developer.wordpress.org/reference/package/users/page/10/?output_format=md)

 [Next Page](https://developer.wordpress.org/reference/package/users/page/2/?output_format=md)