refresh_user_details( int $id )

Cleans the user cache for a specific user.


Description Description


Parameters Parameters

$id

(int) (Required) The user ID.


Top ↑

Return Return

(bool|int) The ID of the refreshed user or false if the user does not exist.


Top ↑

Source Source

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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.