Emergency Password Reset Script in WordPress

| Last Updated: | In: 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.

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 is 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.


You may also like:


, , , , ,