• Resolved fahema18

    (@fahema18)


    Hello ALi.
    I am using “XPROFILE_UPDATE” Method to update user profile. its need “BuddyPress” plugin i have installed it after this if i am using this post request

    https://blue.genetechz.com/psorenity/site/api/user/xprofile_update/
    cookie:johnn|1516791537|uWtggg4W4T55QykDkSaKTRjVHjqsompQiWKi6xcHG1u|d6f9517d34d51d727367d40c240ddd920e980df04e6e68689c4a2ad49af17b94
    username: johhhn

    its Return:
    {
    “status”: “ok”,
    “username”: {
    “updated”: false
    }
    }
    updated”: false ???
    Please help

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    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.
    Thread Starter fahema18

    (@fahema18)

    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

    Plugin Author Ali Qureshi

    (@parorrey)

    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.

    Thread Starter fahema18

    (@fahema18)

    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.

    Plugin Author Ali Qureshi

    (@parorrey)

    No. wordpress does not allow you to change user_login.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘unable to use “XPROFILE_UPDATE” Method’ is closed to new replies.