WordPress update user password through FTP

0 Comments

Last updated on

You lost your WordPress user password, and have tried to enter your username or email address in the “Lost your password?” page but failed to receive any link to create a new password via email.

Here is the simple and best solution to reset your WordPress user password.

Open your current activate theme’s functions.php and add the code in the first line.

<?php
      $user_id = 1;   // Please find user id of users table from phpmyadmin
      wp_set_password('YourNewPass',$user_id);
?>

Leave a Comment