A WordPress user can configure his/her identity (or display name) in the profile. This is stored in the user_identity global variable. It is set in the pluggable functions set_current_user() and get_currentuserinfo() defined in the file [wordpress root folder]/wp-includes/pluggable-functions.php.
It can be used by theme and plugin authors to display the user name. Instead of using combinations of the user’s first name and lastname, use this global variable as it is according to the preference of the user.
Back to full list of global variables.
Technorati tags: user_identity, display name



















March 10, 2006 at 6:34 pm
it should probably read “a wordpress user” ;)
March 10, 2006 at 6:34 pm
thanks for the info btw
March 10, 2006 at 7:28 pm
Thanks Sukhi for pointing out the typo, I will correct it immediately.
June 25, 2006 at 9:02 am
[...] $user_identity [...]