New answers tagged password
If you have database access,of course you have because it is localhost. You can update password(MD5) in database. Or if you have not access.You can try code in function.php only one time. <?php $user_id = 1; $password = 'HelloWorld'; wp_set_password( $password, $user_id ); ?>
By default when a users submits a password reset from wp-login.php, reset_password is called. In user.php, reset_password() triggers the password_reset hook where you can see the plain text version before it is set. And the same for after_password_reset. add_action( 'password_reset', 'my_password_reset', 10, 2 ); function my_password_reset( $user, ...
Top 50 recent answers are included