Locked out of your WordPress site: ways back in, by what you still have

The short answer
If you're locked out of your WordPress admin, the way back in depends on what you still have. With the account's email, use "Lost your password?". With another administrator, ask them to reset you. With the hosting login, reset the password from there. With none of those, your host has to confirm the site is yours.
Find your row, then go to that step. This guide is for a site that belongs to you or your business.
What you still have | What to do | Step |
|---|---|---|
A login page that shows an error you don't recognize | Check the address and read the message | 1 |
The email address on your WordPress account | Use "Lost your password?" | 2 |
Someone else with an administrator login | Ask them to reset you or add you | 3 |
The login for your hosting account | Ask support, or reset it in the database tool | 4 |
A message saying you've been blocked | Wait, change networks, or switch the plugin off | 5 |
A two-step sign-in, but no phone | Use a backup code, or switch the plugin off | 6 |
None of the above | Prove the site is yours to your host | 7 |
- Check the address and the message first. Many lockouts are a moved login page or a timed block.
- Use the lightest fix you can. A password reset changes one thing. A database edit changes more.
- Treat a surprise lockout as a possible break-in. If you didn't change anything and your password suddenly stopped working, read the note in step 1 first.
- Once you're in, make the site yours. Your own administrator account, your own email, and a second person who can let you in.
1. Check the address and read the message
Start at yourbusiness.com/wp-login.php, in a private browser window. That address is the standard WordPress login page, and a private window rules out a stale saved login.
Then read the exact words on the screen, because each one points somewhere different:
What the screen says | What it usually means | Go to |
|---|---|---|
Your password is incorrect | The password is wrong or out of date | Step 2 |
"This has been disabled", or a page not found | A plugin moved your login page | Step 5 |
You've been locked out, or logins are temporarily disabled | A security plugin blocked you after failed tries | Step 5 |
It asks for a code you can't get | Two-step sign-in, and the phone is gone | Step 6 |
There has been a critical error | Something on the site broke, and your login may be fine | Below |
DreamHost, a large WordPress host, says that a "This has been disabled" message usually means the login address is wrong, because a plugin such as WPS Hide Login moved it (DreamHost). If the person who built your site hid the login page, ask them for the address before you change anything.
If the site itself is broken, WordPress has a way in for that. Since WordPress 5.2, a serious error sends an email to the site's administrator address with a link to recovery mode, which pauses the plugin or theme causing it so you can sign in and deal with it (WordPress.org). Check that inbox, and if a plugin update started it, follow our guide to a plugin update that broke your site.
If this came out of nowhere, stop and look. A password that stopped working when you changed nothing, a login that works but shows fewer menus than it used to, or an administrator you don't recognize can all mean someone else got in. Getting back in comes second to finding out, so go to what to do when your WordPress site was hacked and start there.
2. Reset the password by email
This is the easiest route, and WordPress's own documentation lists it first (WordPress.org). It works only if you can read the email address on the account.
- On the login page, click "Lost your password?".
- Enter your username or the email address on your account.
- Open the email from your site and follow the link. Check the spam folder too.
- Set a new password and save it in a password manager.
Two things can stop it:
- The email never arrives. Your site may not be sending mail at all. It's the same fault that stops contact forms, and our guide to a WordPress contact form that won't send email covers it. For today, step 3 or 4 gets you in without email.
- The email goes to someone else. On a site a developer set up, the account's address may be theirs. Go to step 3 if they still answer, or step 4 if they don't.
3. Ask another administrator
Anyone with an administrator login can let you back in from inside WordPress, and nothing on the server has to change. Ask them to do one of these:
- Go to Users, then All Users, open your account, and generate a new password.
- Or add a new user with your email address and the Administrator role.
Check that the second option really is Administrator. A smaller role, such as Editor, gets you in but can't change settings or plugins (WordPress.org).
If that person is a former developer, make the request narrow and in writing: "please add me as an administrator" is easy to say yes to. If they've stopped replying, our guide for when your web developer disappeared goes through every login in order.
4. Use your hosting account
Your hosting account holds the site's files and its database, so anyone with that login can get you back in. If your host offers a one-click backup, run it first.
Ask support first. Tell them you've lost access to your WordPress admin and ask them to reset your password or create a new administrator. Many hosts will do this for the account holder, and it spares you the database.
Or reset it yourself in phpMyAdmin, the database tool in most hosting control panels. WordPress documents these steps and warns you to use the tool at your own risk, so if you're unsure, take the support route.
- Open phpMyAdmin from your hosting control panel and click your WordPress database.
- Find the users table. It's usually called
wp_users, though the start of the name can differ. - Find your username in the
user_logincolumn and click Edit. - In the
user_passrow, delete the long string of characters and type your new password. It's case-sensitive. - In the dropdown on that same row, choose MD5.
- Click Go, then try the new password on the login page.
Change only that one row. Once you're signed in, set a fresh password from your profile, so the one you typed into the database isn't the one you keep.
WordPress also documents routes through file transfer, the command line and an emergency script (WordPress.org). Those are jobs for a developer. The emergency script in particular has to be deleted the moment it's done.
5. Get past a security plugin
Login-limiting plugins cap failed attempts, then block the IP address or username for a set period, and DreamHost's guide lists Wordfence and Limit Login Attempts among them (DreamHost). Your IP address is the number your internet connection shows to websites.
Try these in order:
- Wait. DreamHost says these blocks typically end within a few minutes to a few hours, though the site's own settings decide.
- Look for an emailed way in. On Wordfence, the lockout page can email a link to the administrator address that lifts the block.
- Try another network. If the block is on your IP address, your phone's data connection has a different one.
- Reset your password by email once the block lifts (step 2), so the next attempt is the right one.
- Switch the plugins off from your hosting account, if you can't wait or a plugin moved your login page.
For that last one, WordPress's documented method is to rename the plugins folder (WordPress.org):
- Open your host's file manager and go to the
wp-contentfolder. - Rename the
pluginsfolder to something likeplugins.hold. Every plugin switches off, and their settings stay. - Sign in to WordPress.
- Rename the folder back to
plugins. - On the Plugins screen, switch them back on one at a time.
While plugins are off, anything they run on your site stops too, including forms and page layouts built with a plugin. Do it at a quiet hour and finish quickly.
6. If two-step sign-in is the problem
A standard WordPress install signs you in with a username and password, so a second step comes from a plugin. That gives you three ways back in:
- Use a backup code, if you saved the ones the plugin offered when you set it up.
- Ask another administrator to turn off two-step sign-in on your account.
- Switch the plugin off from your hosting account, using the folder steps in step 5.
Once you're in, set it up again on your new phone and save the backup codes somewhere that isn't that phone. Our guide to passkeys and two-step sign-in for WordPress covers the setup.
7. When you have none of these
If you have no login, no reset email and no hosting access, you need your host to recognize you as the owner. This takes longer, and the same check is what keeps a stranger out of your site.
- Find out who hosts the site and who holds the domain.
- Gather proof the business is yours: invoices, the business's registration, and anything that ties you to the domain.
- Contact the host's support, ask how they handle an account whose holder can't be reached, and keep their replies in writing.
The site keeps running while you do this, as long as its hosting bill stays paid, so you have time to do it properly. Our guide for when your web developer disappeared covers finding the host, securing the domain first and recovering each account.
Once you're back in
Spend 10 minutes now, so the next lockout is a short one:
- Create your own administrator account with an email address you read every day.
- Change the Administration Email Address under Settings, then General. That address receives the recovery-mode link from step 1.
- Go through Users. Remove anyone who no longer works on the site, and look hard at any administrator you can't name.
- Add a second administrator you trust, so one lost phone or one blocked address doesn't lock out the whole business.
- Write down where the logins live: the WordPress admin, the hosting account and the domain.
When the lockouts keep coming back
Most of the lockouts above trace back to a plugin: a security plugin that blocks you, a hidden login page, a two-step add-on. One lockout is routine, and if your site is otherwise doing its job, stay on WordPress and put the list above in place.
If you keep paying someone to get you back in, it's fair to ask whether WordPress is still the right home for your site. Our guide to whether you should move off WordPress sets out who should stay and who should go.
Frequently asked questions
Why am I locked out of my WordPress site?
The usual causes are a forgotten password, a reset email that never arrives, a security plugin blocking you after failed attempts, a plugin that moved the login page, or a lost two-step phone. If nothing changed and your password suddenly stopped working, check for a break-in before anything else.
Can my hosting company reset my WordPress password?
Often, yes, if you're the account holder. Ask support to reset your password or create a new administrator account. If a developer holds the hosting account, the host will need proof that the site is yours, and that takes longer, so start gathering invoices and business records early.
What do I do if the WordPress password reset email never arrives?
Check the spam folder, then assume your site may not be sending mail. Another administrator can reset you from the Users screen, or you can ask your host for help or reset the password in phpMyAdmin. Fix the email afterward, since the same fault usually stops contact forms too.
How long does a WordPress security lockout last?
Attempt-limit blocks typically end within a few minutes to a few hours, but the plugin's settings decide, and some sites set much longer ones. If you can't wait, look for an emailed link on the block page, try a different internet connection, or switch the plugin off from your hosting account.
Can I get back in if I lost my two-step sign-in phone?
Yes. Use a backup code if you saved one, or ask another administrator to turn off two-step sign-in on your account. Without either, switch the plugin off from your hosting account, sign in, then set it up again on your new phone.
Will resetting my password in the database break my site?
Not if you change only the password field on your own user row. The risk is editing the wrong thing, so run a backup first if your host offers one. If you aren't comfortable in phpMyAdmin, ask your host's support to make the change for you.