user_identity

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: ,

4 Responses to “user_identity”

  1. sukhi Says:

    it should probably read “a wordpress user” ;)

  2. sukhi Says:

    thanks for the info btw

  3. Abhijit Nadgouda Says:

    Thanks Sukhi for pointing out the typo, I will correct it immediately.


Leave a Reply