Un motore di ricerca WordPress per sviluppatori e autori di temi



refresh_user_details ›

Da3.0.0
Deprecaton/a
refresh_user_details ( $id )
Parametri:
  • (int) $id The user ID.
    Richiesto:
Ritorna:
  • (bool|int) 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;

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

	clean_user_cache( $user );

	return $id;
}