you have to provide xprofile field name which you want to update. such as: fist_name=John&last_name=Smith
It must match exactly as it is in xprofile fields.
Just updated using update_user_meta endpoint >>
https://blue.genetechz.com/psorenity/site/api/user/get_user_meta/?cookie=johnn|1516791537|uWtggg4W4T55QykDkSaKTRjVHjqsompQiWKi6xcHG1u|d6f9517d34d51d727367d40c240ddd920e980df04e6e68689c4a2ad49af17b94&meta_key=website
it shows website value correctly so plugin is working.
-
This reply was modified 6 years, 3 months ago by Ali Qureshi.
Thanks for quick reply.
i need to update user profile data username,email,display_name etc in wp_users table not usermeta. i am confused.
https://blue.genetechz.com/psorenity/site/api/user/xprofile_update/?cookie=johnn|1516791537|uWtggg4W4T55QykDkSaKTRjVHjqsompQiWKi6xcHG1u|d6f9517d34d51d727367d40c240ddd920e980df04e6e68689c4a2ad49af17b94&first_name=testtest
Not working.. Result is
{
“status”: “ok”,
“first name”: {
“updated”: false
}
}
xprofile fields?? is (wp_users tables fields name) correct ?
there is no proper documentation
you must know what you are attempting to do.
xprofile fields are related to BuddyPress extended User Profile. you don’t need them. They are only related to BP member profile.
You need to use update_user_meta and update_user_meta_vars endpoints. read its documentation and you are set.
You can’t change user_login.
In my requirements. user can change email address, username, display Name(first name, last name). so in this case can i use update_user_meta and update_user_meta_vars ???
Thanks for your support.
No. wordpress does not allow you to change user_login.