Post On : January 24, 2020

Hello Developers, Greetings of the day!!

If you lost or forgot your wordpress admin password and you don’t have access to wordpress phpMyAdmin or cPanel but you can access the FTP, at that time you can reset or change the wordpress admin password using FTP.

Please follow the below steps :

1. First of all Open your functions.php file of current active theme.

Add below line of code at very first line of functions.php file.

wp_set_password('password',1);

“password” is your new password.

“1” is ID of user.

Please see below screenshot :

2. Now, Login in to your wodpress admin with your current username.

You will not be login into wordpress admin but login form would just refresh. Do not try to login one more time.

3. After first try to wordpress login, just remove the above code from your functions.php file.

After the login change your password to more secure password by editing your profile for security reason.

I hope this helps.

Thanks and Keep Visiting 🙂

Catagory :Wordpress