Reset Your WordPress Password Without Email using FTPPosted by Lets Nurture
3.97 K views
Continuing from my last post I have found a much simpler method of Reset Your WordPress Password without using your mail. This is our little contingency in case you lose mail server access when you want to change your password.
Previously we saw how you would change your admin password using the phpMyAdmin tool. Today we are going to see a much simpler method of changing your password.
This method is going to require you to have FTP access to your hosting site. So here is how it goes:
Step 1: Navigate to wordpress directory
Navigate to the wordpress directory in the root of your server. From there navigate the breadcrumb trail:
Step 2: Modify php code
Here you will find a file named “functions.php”. Open the file and add the following line:
[sourcecode type=”php”]<br /><br /><?php wp_set_password(‘password’,1); ?><br /><br />[/sourcecode]
Step 3: Login to WordPress
Save your changes and go back to the login screen of your wordpress site. You can now login with the password:”password”.
Step 4: Revert the php code
Now the most important step is that after you have logged in you must open “functions.php” and remove the line you added. Unless you remove this line, no matter what password you change to it will always revert to “password” when you login.
Step 5: Change your password
After you have done this you may now Reset Your WordPress Password from the dashboard to anything of your choice