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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: