ifacethoughts

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

Discussion [Participate or Link]

  1. sukhi said:

    it should probably read “a wordpress user” ;)

  2. sukhi said:

    thanks for the info btw

  3. Abhijit Nadgouda said:

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

  4. Abhijit Nadgouda @ iface » Blog Archive » Wordpress Global Variables said:

    [...] $user_identity [...]

  5. Abhijit Nadgouda’s List of WordPress Global Variables « Lorelle on WordPress said:

    [...] User Data: wp_roles, user_pass_md5, user_url, user_login, user_level, user_identity, user_email, user_ID, current_user, and wpdb [...]

  6. Wordpress Global Variables | iface thoughts said:

    [...] $user_identity [...]

  7. WordPress Global Variables | iFansClub said:

    [...] $user_identity [...]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.