Emergency Password Reset Script in WordPress

Prem Tiwari - - WordPress, WordPress Snippets

Sometimes you forgot your Admin email address and password of your website and want to reset your admin password of your site.

Below is the list of Action you can do to reset your password. In this tutorial, I will share how to reset your password using emergency password reset Script.

Emergency Password Reset Script in WordPress

Reset Your Password Using Emergency Password Reset Script in WordPress

This is a simple PHP Script, not a WordPress plugin. Below is the list of warning to reset the password using an emergency password. You need the below information before resetting your password.

  1. Requires you know the administrator username
  2. Upload this script root directory of your WordPress installation.
  3. If you don’t receive the email, the password is still changed.
  4. You don’t need to logged in to use this script.
  5. Due to some security, delete this script after reset the password.
  6. Do not upload it inside the WordPress Plugin directory.

Emergency Password Reset Script in WordPress

Create emergency.php file and copy paste below code. After that open http://your-website-url.com/emergency.php in your browser.

Now enter the administrator username, new password and then click Update Options to reset the password. Delete emergency.php from your server when you are done.

More detial…

About: Prem Tiwari

Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.