wpseek.com
A WordPress-centric search engine for devs and theme authors



refresh_user_details › WordPress Function

Since3.0.0
Deprecatedn/a
refresh_user_details ( $id )
Parameters:
  • (int) $id The user ID.
    Required: Yes
Returns:
  • (int|false) The ID of the refreshed user or false if the user does not exist.
Defined at:
Codex:

Cleans the user cache for a specific user.



Source

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

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

	clean_user_cache( $user );

	return $id;
}