[wp-hackers] update_user_option() Not quite working right.
Mark Harwood
mark at phunky.co.uk
Wed Feb 8 10:56:15 GMT 2006
yeah i wanted to try and keep to as many WP functions as possible, but
it would seem that ive been unable to do so.
So ive just gone ahead with using $wpdb->query
Thanks tho
Jamie Talbot wrote:
>-----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-----
>_______________________________________________
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
>http://lists.automattic.com/mailman/listinfo/wp-hackers
>
>
More information about the wp-hackers
mailing list