I\'m trying to build a simple wordpress password change script of my own (well, based on a plugin really) - the password is successfully changed - but it logs me out after t
You can try the below code. It won't log you out after changing the password.
$userdata['ID'] = 1; $userdata['user_pass'] = 'new_password'; wp_update_user( $userdata );
Enjoy ;)