You can reset a lost or forgotten WordPress administrator password directly from the login screen. This procedure allows a Site Administrator to regain access to the WordPress dashboard when the current credentials are unknown.
Before you begin
You will need:
Access to the WordPress login page (typically
example.com/wp-login.php)Access to the email account associated with the WordPress administrator account
Resetting the password via the "Lost your password?" link
Navigate to the WordPress login page.
Locate the Lost your password? link below the login form.
Click the Lost your password? link.
Enter the email address associated with the administrator account.
Click Get New Password.
Open the password reset email sent by WordPress.
Click the unique link provided in the email.
On the following page, enter a new password and confirm it.
Click Reset Password.
Confirm the result
You will be redirected to the WordPress login page.
You can now sign in using the new password.
A success message will appear confirming the password has been updated.
If you do not receive the reset email
If the email does not arrive within a few minutes, check the following:
Spam/Junk Folders: Check your email's spam or junk folders, as automated system emails are sometimes filtered.
Correct Email Address: Ensure the email address entered on the "Lost your password?" page is the exact one associated with the account.
Email Delivery Issues: If the email is not in spam, the account may be associated with an incorrect or inactive email address. In this case, you will need to use an alternative method to regain access, such as via phpMyAdmin.
Limitations
This method requires the administrator's email account to be active and accessible. If the email address on file is incorrect or no longer accessible, this method cannot be used to reset the password.
