Uses
Uses | Description |
---|---|
wp-includes/pluggable.php: get_userdata() | Retrieve user info by user ID. |
wp-includes/user.php: clean_user_cache() | Clean all user caches |
Cleans the user cache for a specific user.
(int) (Required) The user ID.
(bool|int) The ID of the refreshed user or false if the user does not exist.
File: wp-admin/includes/ms.php
function refresh_user_details( $id ) { $id = (int) $id; $user = get_userdata( $id ); if ( ! $user ) { return false; } clean_user_cache( $user ); return $id; }
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/refresh_user_details