• I’m using the Register Plus Redux plugin with custom forms/pages for registration, updating your profile, and changing your password.

    Everything is working super. One issue on the change password page:

    – user is requested to enter their new password twice
    – separate js verifies passwords match
    – form posts to a script with with current user ID (from get_userdata() and the new password
    – script updates password only with a call to wp_update_user using an array, $userdata, that contains just the user ID and the new password
    – password is sucessfully changed

    Here’s the rub, after changing the password, the info for that user ID in wp_usermeta is removed. The keys are still there (if they were set) in wp_usermeta, but the values are wiped.

    I’ve verified that the call to wp_update_user is just sending the user ID and password, but I can’t figure out why this is happening.

    Is this expected? is there a better way to do this?

    TIA!

Viewing 4 replies - 1 through 4 (of 4 total)
  • This should be posted in the Plugins & Hacks forum for best results ??

    Thread Starter tasfalen

    (@tasfalen)

    Thanks! Should I repost there? I wasn’t sure as it seems to be an issue with a core function.

    Well, if the DB query is being made from within the plugin, i’d post it there. Otherwise, I guess keep it here.

    Thread Starter tasfalen

    (@tasfalen)

    No, the DB query is in my page. It may have nothing to do with the plugin. Thanks! I’ve done some poking and just can’t figure out why it’s clearing/resetting the wp_usermeta when I change the password with that function.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_update_user clearing data in wp_usermeta when called to change user password’ is closed to new replies.