Title: INSERT INTO &#8211; user registration
Last modified: August 22, 2016

---

# INSERT INTO – user registration

 *  [Drecha](https://wordpress.org/support/users/drecha/)
 * (@drecha)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/)
 * Hello everyone,
    Where can I find the line which is responsible for adding new
   user into database? I would like to add created user also into one more table.
   Any ideas?
 * Thanks in advance,
    Drecha.

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

 *  [g.](https://wordpress.org/support/users/morrisgraeme/)
 * (@morrisgraeme)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/#post-5814950)
 * I am assuming you need to add user to using phpMyAdmin right?
    Try this: [Video Tutorial](http://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/)
   Cheers.
 *  Thread Starter [Drecha](https://wordpress.org/support/users/drecha/)
 * (@drecha)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/#post-5814977)
 * No, that’s not it. I am looking for a line which includes INSERT INTO responsible
   for adding users because I want to add another line, to add this user to one 
   more table in my database.
 * To make it clear:
    1. User fills the registration form 2. His data must be added
   to both tables: wp_users and users (table without prefix).
 *  [g.](https://wordpress.org/support/users/morrisgraeme/)
 * (@morrisgraeme)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/#post-5815174)
 * Sorry I don’t know how to do that. 🙁
 *  [Bill](https://wordpress.org/support/users/chubbycrow/)
 * (@chubbycrow)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/#post-5815177)
 * I don’t have a great answer for you, but take a look at this:
    [http://codex.wordpress.org/Plugin_API/Action_Reference/user_register](http://codex.wordpress.org/Plugin_API/Action_Reference/user_register)
   for an example of tying a custom function into the `user_register` action hook.
   That hook is found on line #1937, at the end of `wp_insert_user()` ([https://core.trac.wordpress.org/browser/tags/4.1.1/src//wp-includes/user.php#L1657](https://core.trac.wordpress.org/browser/tags/4.1.1/src//wp-includes/user.php#L1657)).
 * That hook fires after collecting the user’s data, but you’ll have to see if it
   has the data you need (read the cautions in the description of the hook). I may
   be way off here, but you’ll at least learn a lot by reading through the in-line
   documentation for that function. I did. Good luck!

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

The topic ‘INSERT INTO – user registration’ is closed to new replies.

## Tags

 * [insert into](https://wordpress.org/support/topic-tag/insert-into/)
 * [register](https://wordpress.org/support/topic-tag/register/)
 * [signup](https://wordpress.org/support/topic-tag/signup/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Bill](https://wordpress.org/support/users/chubbycrow/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/insert-into-user-registration/#post-5815177)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
