Placeholder canvas

How to Recover WordPress Lost Passwords in 2024?

How to Recover WordPress Lost Passwords

Losing a password can be a super frustrating experience, especially in the dynamic landscape of today’s digital era. Forgetfulness is a common occurrence, and passwords are no exception. In the fast-paced world of technology, it’s not uncommon to find oneself locked out of a WordPress account due to a forgotten password. 

Familiarizing yourself with various recovery methods becomes crucial in such situations.

WordPress has effectively addressed this issue by offering users multiple options for recovering lost passwords or modifying existing ones effortlessly. The platform has implemented several user-friendly methods for password recovery, enhancing overall convenience. Therefore, let’s explore five reliable techniques to regain access to a WordPress account when faced with a lost password.

In addition, as of 2024, WordPress continues to prioritize user security and has introduced new features and updates to enhance password recovery and overall account protection further. The platform’s commitment to staying abreast of evolving security challenges ensures a robust and secure user experience in the ever-changing digital landscape.

Ask for help from the Admin User

Seeking assistance from the WordPress site administrator can swiftly resolve password-related issues. The site’s administrator holds privileged access to the dashboard, and if a designated admin user is available, they can efficiently modify your profile and reset the password.

Follow these steps to streamline the process:

1. Approach any of the admin users associated with the WordPress website and request their assistance in initiating a password reset.

2. Once the admin user logs into the account, navigate to the “Users” and “All Users” pages. From the list of registered users, locate and select your profile.

3. Proceed to the “Account Management” section, click on the “Set New Password” button, and input the desired new password.

4. After securely receiving the updated password from the administrator, promptly log in to your WordPress account and promptly change the password to enhance security

This method, reliant on the cooperation of an admin user, stands as one of the most straightforward approaches to regain access to your account. While the administrator may need to perform a few steps, the overall process is expedient and uncomplicated.

Also read: 6 Common Problems When Logging In WordPress Admin Panel (And Their Solutions)

Password Reset Link through Email Password Recovery

Undoubtedly, this represents one of the most versatile and expeditious approaches to password recovery. By following this procedure, you can initiate the creation of a password reset link, which will be dispatched to the email associated with your WordPress account.

To execute this method, adhere to the following steps:

1. Navigate to your WordPress login page and locate the “Lost your password?” option situated beneath the login dialog box.

2. Upon clicking the “Lost your password?” link, WordPress will automatically redirect you to the password reset page.

3. Progress in the process necessitates either your username or email address. WordPress will prompt you to input your email address or username to generate a new password.

4. Input the requisite credentials and select the “Get New Password” button.

5. If the information you entered is accurate, WordPress will dispatch a password reset link to your email address. 

By following the provided instructions, you can swiftly access the link and reset your password.

While this method appears straightforward, complications may arise in the following scenarios:

  • Non-receipt of the reset email.
  • Inability to recall the correct username or email address.
  • Unavailability of access to your email account.

Should you encounter any of these situations, it is advisable to explore alternative methods for password recovery. Additionally, to provide updated information relevant to 2024, it’s worth noting that WordPress continually enhances its security features and may introduce new procedures or tools for password recovery. Always refer to the latest WordPress documentation for the most current and effective methods.

Reset WordPress Password through phpMyAdmin

To implement this method, you must possess administrative access to your website’s hosting cPanel or web hosting control panel provided by your WordPress hosting service. Resetting your WordPress password can be accomplished through phpMyAdmin, which is accessible via cPanel.

The efficacy of this approach lies in the utilization of the MySQL database. WordPress uses a MySQL database to hold important data that is necessary for the website to operate properly.

This database holds the login credentials necessary for retrieving vital data.

Although database security remains a worry, WordPress passwords offer an extra degree of security because they are encrypted. The database can only be accessed by those who have legitimate administrator rights.

Follow these steps for the process:

1. Start by going to cPanel and signing into your admin account. Once inside, pick phpMyAdmin under the Database menu.

2. Log in to your phpMyAdmin account. Upon successful login, you’ll encounter a list of databases. Choose the WordPress database associated with your website.

3. Locate the wp_users row and click on the browse icon located on the right.

4. Upon clicking the browse icon, you’ll be directed to a page displaying all registered users on your WordPress site, including their usernames, user emails, and encrypted passwords.

5. Identify and select the user for whom you wish to alter the password, then click on Edit.

6. On the subsequent page, locate the user_pass section to change the password.

7. Be cautious at this point. Delete the long string of letters and numbers under the value column along the user_pass line.

8. In the same box, input the desired password.

9. To encrypt the password, choose MD5 from the drop-down menu. Double-check the accuracy of the password and the selection of MD5.

10. To finish updating your password, click Save, Update, or Go at the bottom of the screen to put the changes into effect.

Reset through FTP Using Functions.php File

Each WordPress theme is accompanied by a vital PHP file that holds essential information necessary for the optimal functioning of your WordPress website. It’s important to note that WordPress typically consists of two or three PHP files in total.

The process of resetting the password involves working with the functions.php file located in the WordPress theme directory. Before proceeding, ensure that you obtain a copy of the functions.php file from the WordPress hosting server. Access the hosting server through FTP or cPanel. Identify the active WordPress theme on your site before following these steps:

1. Locate the functions.php file within your active theme’s directory (folder). If you’re using a child theme, navigate to the functions.php file in the child theme’s folder.

2. Add or edit the “wp_set_password” line of code in the functions.php file.

Example: `wp_set_password(‘new_password’, 1)`

Replace ‘new_password’ with your desired strong password and ‘1’ with the user ID of the specific WordPress user.

3. Save the changes to the functions.php file, and using FTP, upload the edited file back to your website.

4. After uploading the file, you should be able to successfully log in to your account, completing the password recovery process.

5. There are post-recovery responsibilities for this method. Undo the changes made to the functions file.

6. Re-download the WordPress functions file, remove the added line of code, and upload the modified file back to your WordPress site to complete the process.

Reset using PHP Script.

This method is not recommended as a primary option for password recovery, but if all other techniques fail, you may consider this approach as a last resort. Please note that this method is complex and involves creating a PHP file using a pre-written script, which you then add to the core of your website.

To implement this method, follow these steps:

1. Begin by obtaining the PHP script. Copy it from the relevant page in the WordPress codex that corresponds to the current year (2024).

2. In a text editor, open a new document called “emergency.php.” 

 Paste the entire script from the updated WordPress Codex link into this new file.

3. Ensure that the file contains the necessary Admin information. Update the values accordingly, and save the file.

4. Log in to your web hosting account and access the control panel. Open the file management application and navigate to your WordPress website’s root directory.

5. Add the newly created “emergency.php” file to the root directory. 

Visit https://[yourdomainname].com/emergency.php.

6. The username of the administrator will need to be entered. Next, make yourself a new password. When finished, click “Update Options”.

7. Once the Admin has regained access, promptly delete the “emergency.php” file from your server to eliminate any potential security risks.

It’s imperative to use caution when utilizing this technique, and it should only be employed after exhausting other conventional password recovery options. Additionally, removing the “emergency.php” file promptly is essential to safeguard the security of your website.


Recovering a lost WordPress password in 2024 requires a thoughtful and strategic approach. While various methods exist, it is crucial to prioritize security and adhere to established practices. In the rapidly evolving digital landscape, Users should select recovery techniques that comply with the most recent recommendations and keep themselves informed. 

The process outlined above, though considered a last resort, underscores the importance of safeguarding website access while emphasizing the necessity of promptly removing any potential security risks. As technology advances, the key remains a balance between accessibility and security, ensuring WordPress users can navigate password recovery efficiently without compromising the integrity of their websites.


How can I get my lost WordPress password back without employing artificial intelligence?

To recover your lost WordPress password in 2024, you can follow the manual steps outlined by the platform. Explore options like using the email recovery feature, accessing the recovery mode, or utilizing the emergency password recovery method as a last resort. AI assistance is not required for these standard recovery procedures.

Is there an alternative to automated tools for resetting a WordPress password in 2024?

Absolutely! Instead of relying on automated tools, you can opt for manual methods recommended by WordPress. Try using the email recovery option, entering recovery mode, or implementing the emergency password recovery method by creating a PHP file. These steps are AI-free and provide alternatives to automated tools.

Can I recover my WordPress password without using third-party plugins or services in 2024?

Yes, you can recover your WordPress password without relying on third-party plugins or services. WordPress offers built-in features like email recovery and recovery mode. Additionally, the emergency password recovery method involves manual steps, eliminating the need for external plugins or services.

Is the emergency password recovery method safe for retrieving a lost WordPress password?

The emergency password recovery method, involving the creation of a PHP file, can be considered as a last resort. While it is a manual and AI-free approach, it should be used cautiously. Ensure that you follow the recommended steps carefully, and once access is regained, promptly remove the created file to maintain the security of your WordPress website.

What precautions should I take when attempting the emergency password recovery method in 2024?

When attempting the emergency password recovery method, it’s crucial to exercise caution. Ensure that you follow the steps precisely as outlined in the WordPress Codex for the current year (2024). Once access is restored, promptly delete the created “emergency.php” file from your server to minimize any potential security risks associated with this recovery approach.

Want faster WordPress?

WordPress Speed Optimization

Try our AWS powered WordPress hosting for free and see the difference for yourself.

No Credit Card Required.

Whitelabel Web Hosting Portal Demo

Launching WordPress on AWS takes just one minute with Nestify.

Launching WooCommerce on AWS takes just one minute with Nestify.