Title: Adding new users details
Last modified: August 19, 2016

---

# Adding new users details

 *  [Adriano Di Toppa](https://wordpress.org/support/users/adriano-di-toppa/)
 * (@adriano-di-toppa)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-new-users-details/)
 * Hi,
 * I need to enhance the user management form by adding a couple of details about
   users. I already created two fields on wp_users table and now i need info about
   how to fill data during user creation process.
 * Thanks
    Adriano

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

 *  [kkarpieszuk](https://wordpress.org/support/users/kkarpieszuk/)
 * (@kkarpieszuk)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663232)
 * this function will help you
 * [http://codex.wordpress.org/Function_Reference/wp_update_user](http://codex.wordpress.org/Function_Reference/wp_update_user)
 *  Thread Starter [Adriano Di Toppa](https://wordpress.org/support/users/adriano-di-toppa/)
 * (@adriano-di-toppa)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663370)
 * Hi,
 * this is a very useful lik, by the way I can’t understand well how to add a new
   column in wp_users table and allow Admin to fill data in this column using standard
   back-end ‘add-new-user’ form.
 * Could u please help me in this?
    Thanks in advance Adriano
 *  [kkarpieszuk](https://wordpress.org/support/users/kkarpieszuk/)
 * (@kkarpieszuk)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663379)
 * don’t add new column to wp_users. for additional user data is table wp_usermeta,
   where is stored:
 * id – id of row in table
    user_id – which user wordpress should be associated 
   with additional data meta_key – name of additional data meta_value – value of
   additional data
 * so for example you want to add for users ‘favorite color’. now you want to add
   next column to wp_users called ‘favorite_color’. don’t do this. instead save 
   this data in wp_usermeta with this function:
 * `update_user_meta('12', 'favorite_color', 'pink');`
 * this will associete pink as favorite color of user whos id is 12.
 * if you want to read favorite color of user 23:
 * `get_user_meta('23', 'favorite_color', true);`
 * more info about thos functions:
 * [http://codex.wordpress.org/Function_Reference/update_user_meta](http://codex.wordpress.org/Function_Reference/update_user_meta)
 * [http://codex.wordpress.org/Function_Reference/get_user_meta](http://codex.wordpress.org/Function_Reference/get_user_meta)
 *  [carlla](https://wordpress.org/support/users/carlla/)
 * (@carlla)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663385)
 * I think this can help you:
    [adding-and-using-custom-user-profile-fields](http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields)
 *  [Korus IT](https://wordpress.org/support/users/korus-it/)
 * (@korus-it)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663595)
 * Hi, I have the same problem.
    I added some additional fields in the wp_users 
   table and I want to populate when I create a new user. How can I do?
 *  [kkarpieszuk](https://wordpress.org/support/users/kkarpieszuk/)
 * (@kkarpieszuk)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663596)
 * Korus, hook your action for user_register [http://codex.wordpress.org/Plugin_API/Action_Reference/user_register](http://codex.wordpress.org/Plugin_API/Action_Reference/user_register)
 * (if you still dont understand: [http://codex.wordpress.org/Plugin_API/Action_Reference](http://codex.wordpress.org/Plugin_API/Action_Reference))

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

The topic ‘Adding new users details’ is closed to new replies.

## Tags

 * [Creation](https://wordpress.org/support/topic-tag/creation/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 6 replies
 * 4 participants
 * Last reply from: [kkarpieszuk](https://wordpress.org/support/users/kkarpieszuk/)
 * Last activity: [14 years, 12 months ago](https://wordpress.org/support/topic/adding-new-users-details/#post-1663596)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
