Portal Home > Knowledgebase > Articles Database > Wordpress: I need to update one field upon registration


Wordpress: I need to update one field upon registration




Posted by SirMarcel, 01-17-2012, 10:30 AM
I need a wp_users field updated upon user's registration. I can't seem to make it right. If anyone have any suggestions, please share it. First version (doesn't work): Second version (doesn't work): any sugestions?

Posted by webstartavenue, 01-28-2012, 07:08 PM
Did you add a column to the wp_users table in your database? This is not the recommended way to store meta data associated with a user. Instead use the update_user_meta/get_user_meta functions. To store a value for a deposit you would use update_user_meta: And then to retrieve the data later you would use: I hope this helps! See the WordPress Codex for details: http://codex.wordpress.org/Function_...date_user_meta http://codex.wordpress.org/Function_.../get_user_meta

Posted by SirMarcel, 01-28-2012, 07:15 PM
nah, no good. this updates wp_user_meta and what I wanted was in wp_users anyway I found a workaround after toying with wp a bit: thanks anyway edit: it wasn't my idea to store data in wp_users, this is how this theme is construsted



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
EMAIL PROBLEM (Views: 489)