WordPress at Your Fingertips
function is not described

refresh_user_details() WP 3.0.0

Cleans the user cache for a specific user.

No Hooks.

Return

Int|false. The ID of the refreshed user or false if the user does not exist.

Usage

refresh_user_details( $id );
$id(int) (required)
The user ID.

Changelog

Since 3.0.0 Introduced.

Code of refresh_user_details() WP 5.8.2

function refresh_user_details( $id ) {
	$id = (int) $id;

	$user = get_userdata( $id );
	if ( ! $user ) {
		return false;
	}

	clean_user_cache( $user );

	return $id;
}