Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to Reset Wordpress Admin Password Through FTP  (Read 3402 times)

0 Members and 1 Guest are viewing this topic.

jominj

  • Guest
How to Reset Wordpress Admin Password Through FTP
« on: February 09, 2014, 09:31:12 pm »
We can reset the wordpress admin dashboard password   through FTP. Go through the following steps to reset the password

  • Login to your wordpress active theme's function.php file
  • Edit the file and add following code to it right at the beginning after the <?php
Code: [Select]
wp_set_password( 'password', 1 );replace the 'password' with you new password. Number 1in the function indicates the user id in the wp_users table which is for admin user
  • Save the file upload it back to your web site
  • Then after you will be able to login to the site using the new password
Note: Please remove the extra code that have been added after you login to the dashboard, other wise the password will reset every time we load the page.