[wp-hackers] Updating wordpress user via php without knowing the userid

J.D. Grimes jdg at codesymphony.co
Tue Feb 25 13:25:47 UTC 2014


Try WP_User_Query with a meta query: http://codex.wordpress.org/Class_Reference/WP_User_Query#Custom_Field_Parameters

-J.D.

On Feb 24, 2014, at 8:47 PM, Daniel <danielx386 at gmail.com> wrote:

> Thank-you for the quick reply, the only thing is that the data is in
> the wp_usermeta table. Maybe I should consider moving the data from
> wp_usermeta into the wp_users table.
> Regards,
> Daniel Fenn
> 
> 
> 
> 
> 
> 
> On Tue, Feb 25, 2014 at 12:42 PM, Neil Pie's Bacon <bacon at neilpie.co.uk> wrote:
>> get_user_by() any good?
>> 
>> -----
>> 
>> This email was sent from a mobile device so apologies for any brevity and/or spelling mistakes.
>> 
>> On Tue, Feb 25, 2014 at 1:41 AM, Daniel <danielx386 at gmail.com> wrote:
>> 
>>> Hello all,
>>> I don't know if this belongs here or stackoverflow but I'm just
>>> wondering if anyone know if I can update a user's profile when I don't
>>> know the user id but I do know something that will match up if I use
>>> the *_user_meta stuff.
>>> Thank-you :)
>>> Regards,
>>> Daniel Fenn
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> 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