[wp-hackers] update_user_option() Not quite working right.

Jamie Talbot wphackers at jamietalbot.com
Wed Feb 8 10:48:37 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark Harwood wrote:
> Any ideas how we to just change the feilds in wp_user instead of having
> update_user_option() add them into the wp_usermeta table?
> 

There may be better solutions, but why not just update the database yourself with a direct database
call yourself?

Something like:

$wpdb->query("UPDATE $wpdb->users SET user_email = '$myemail' WHERE ID = $userid LIMIT 1")

(Untested!)

Jamie.

- --
http://jamietalbot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD6cyFrovxfShShFARAnPxAKCTWCmyehxok27HvBBVBjCefI27rgCgkR2e
BDx8dIQ8+syp+RDO3zTsysE=
=ljDU
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list