Title: Add User to Different Database Table
Last modified: September 1, 2016

---

# Add User to Different Database Table

 *  [Beebe](https://wordpress.org/support/users/beebe/)
 * (@beebe)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/)
 * Just curious if anyone out there knows where in s2member it tells to put the 
   user in the wp_users table in the database?
 * I want to be able to add one user to the wp_users table upon registration and
   then add another user to a custom table upon registration. Seems like it wouldnt
   be that hard, I am just not sure in what files to look to find out how the user
   is registered.
 * [https://wordpress.org/plugins/s2member/](https://wordpress.org/plugins/s2member/)

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

 *  [krumch](https://wordpress.org/support/users/krumch/)
 * (@krumch)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567031)
 * Not s2M, but WP handle user registrations, s2M handle access only.
 * To answer with more details please explain “another user” – where the info comes
   from? Where (out of WP?) you must save it?
 *  Thread Starter [Beebe](https://wordpress.org/support/users/beebe/)
 * (@beebe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567164)
 * Sorry for the late reply on this. I didnt get notified that you asked a question.
 * Here is the scenario:
 * I have a plugin called rb-plugin. It is for models and casting directors. There
   really isnt a good payment option for this. I want to charge the models a monthly
   fee. I was going to use s2member pro to do this. However, come to find out that
   there are two registration forms that come with the plugin, one for the models
   and one for the casting directors. Their information is stored in the wp-users
   table but ALSO stored in two different table in the database, which I am thinking
   is what gives them access to specific parts of the website. With s2member they
   are only stored in the wp-users table.
 * So what I would want is when a model signs up, they use the s2member pro form
   and not only will their information get stored in the wp-users table like normal
   but also get put in the other specific table for models.
 * I was told api notifications might be able to handle that, but I just cant figure
   it out for the life of me. I did see the example on the s2member FAQs but unfortunately
   that didnt really help me.
 * Any help is appreciated!
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567188)
 * [@beebe](https://wordpress.org/support/users/beebe/), my suggestion would be 
   to approach this the other way round. In other words, can you tell us what information
   the rb plugin needs to insert into its table (and, ideally, can you see the function
   that does it)?
 * Once you know those things, it might be possible to use a regular WP hook instead
   of an s2Member hook. But we need to know what fields you need to populate first.
 *  Thread Starter [Beebe](https://wordpress.org/support/users/beebe/)
 * (@beebe)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567189)
 * [@kts915](https://wordpress.org/support/users/kts915/) would it be easier to 
   email you?
 *  [KTS915](https://wordpress.org/support/users/kts915/)
 * (@kts915)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567190)
 * [@beebe](https://wordpress.org/support/users/beebe/), it would actually be easier
   for me if you used the official s2Member Community Forum (forums.wpsharks.com).
   You could then either post in the forum (where you’d probably get more help from
   others too) or PM me there.

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

The topic ‘Add User to Different Database Table’ is closed to new replies.

 * ![](https://ps.w.org/s2member/assets/icon-256x256.png?rev=980067)
 * [s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions](https://wordpress.org/plugins/s2member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/s2member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/s2member/)
 * [Active Topics](https://wordpress.org/support/plugin/s2member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/s2member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/s2member/reviews/)

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)
 * [wp_users](https://wordpress.org/support/topic-tag/wp_users/)

 * 5 replies
 * 3 participants
 * Last reply from: [KTS915](https://wordpress.org/support/users/kts915/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/add-user-to-different-database-table/#post-7567190)
 * Status: not resolved