refresh_user_details

Advertisement

Summery Summery

Cleans the user cache for a specific user.

Syntax Syntax

refresh_user_details( int $id )

Parameters Parameters

$id

(Required) The user ID.

Return Return

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Advertisement

Leave a Reply