• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 197
  • Last Modified:

Wordpress copying the user_login field onto a field in a new table

I am using wordpress and I've created a new table in the wordpress database.

I have created a new table which contains a userid field

My question is, is there anyway to make a copy save/sync wordpress's user table user_login field into my new table so that every time there's a new user my table is also populated with the user_login field?
1 Solution
I don't think so, I am eagerly waiting for an answer if it can be done
Ray PaseurCommented:
Hmm.. Why not consider the WP table to be the canonical data source?  I'm not convinced that adding another table is a great idea.

But that said, you might be able to use this: http://dev.mysql.com/doc/refman/5.0/en/create-trigger.html

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now