Title: jeragogo's Replies | WordPress.org

---

# jeragogo

  [  ](https://wordpress.org/support/users/jeragogo/)

 *   [Profile](https://wordpress.org/support/users/jeragogo/)
 *   [Topics Started](https://wordpress.org/support/users/jeragogo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jeragogo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jeragogo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jeragogo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jeragogo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jeragogo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [User Identity Variables](https://wordpress.org/support/topic/user-identity-variables/)
 *  Thread Starter [jeragogo](https://wordpress.org/support/users/jeragogo/)
 * (@jeragogo)
 * [20 years ago](https://wordpress.org/support/topic/user-identity-variables/#post-386640)
 * I stumbled on the solution for this. In the file **pluggable-functions.php** 
   in the **wp-includes** directory there are two lists at the beginning of the 
   document. One is for the set_current_user function and the other is for get_current_user.
   I added the variables for the information I wanted to retrieve to each of these
   lists. Now I am able to get first name, last name and nickname in addition to
   the variables listed [here](http://codex.wordpress.org/Function_Reference/get_currentuserinfo).
 * This is the modified code:
    `if ( !function_exists('set_current_user') ) : function
   set_current_user($id, $name = '') { global $user_login, $userdata, $user_level,
   $user_fname, $user_lname, $user_nickname, $user_ID, $user_email, $user_url, $
   user_pass_md5, $user_identity, $current_user;
 *  $current_user = '';
 *  $current_user = new WP_User($id, $name);
 *  $userdata = get_userdatabylogin($user_login);
 *  $user_login = $userdata->user_login;
    $user_level = $userdata->user_level; $
   user_fname = $userdata->first_name; $user_lname = $userdata->last_name; $user_nickname
   = $userdata->nickname; $user_ID = $userdata->ID; $user_email = $userdata->user_email;
   $user_url = $userdata->user_url; $user_pass_md5 = md5($userdata->user_pass); 
   $user_identity = $userdata->display_name;
 * I had a feeling it would be easy! Hopefully this will help future customization
   freaks like me.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [User Identity Variables](https://wordpress.org/support/topic/user-identity-variables/)
 *  Thread Starter [jeragogo](https://wordpress.org/support/users/jeragogo/)
 * (@jeragogo)
 * [20 years ago](https://wordpress.org/support/topic/user-identity-variables/#post-386272)
 * Yes, I found that, but I want to change the Admin Header template. This is the
   code `<?php printf(__('Howdy, **%s**.'), $user_identity) ?>` I would like to 
   replace. The options for this line can be seen at [http://codex.wordpress.org/Function_Reference/get_currentuserinfo](http://codex.wordpress.org/Function_Reference/get_currentuserinfo),
   but I can’t find the code to display the nickname. If there isn’t any I can cope–
   it would just be a nice addition.

Viewing 2 replies - 1 through 2 (of 2 total)