wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



refresh_user_details › WordPress Function

Da3.0.0
Deprecaton/a
refresh_user_details ( $id )
Parametri:
  • (int) $id The user ID.
    Richiesto:
Ritorna:
  • (int|false) The ID of the refreshed user or false if the user does not exist.
Definito a:
Codex:

Cleans the user cache for a specific user.



Sorgenti

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

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

	clean_user_cache( $user );

	return $id;
}