How to change a user’s password programatically

wp_set_password( $password, $user_id );

See reference for details.

Leave a Comment

error code: 523