[wp-hackers] Creating / Inserting into Table named after WP Username

J.D. Grimes jdg at codesymphony.co
Mon Aug 26 18:58:06 UTC 2013

On Aug 26, 2013, at 2:48 PM, Gregory Lancaster <greglancaster71 at gmail.com> wrote:

> i appreiate the feedback.  The issue I am obviously explaining very poorly
> is that I do not understand how to copy the wordpress ->wp_users ->ID field
> into a separate database.  Someone had mentioned hooking into the register
> new user code so everytime someone registers new it creates a new table or
> row whatever in a sep database with a matching user id.  That is what I am
> unclear on how to do.

It sounds like you are trying to set up this metadata in the table(s) ahead of time (before the data is ever called for). Why do you need to do that? The general way of doing things is that you check if the data exists in the database, and if not, then you add defaults or whatever. In other words, why do you need to set all of the user's data up ahead of time instead of just setting it up as needed on the fly? That is the best way to do it in my opinion.

More information about the wp-hackers mailing list