WordPress maintenance Hacked site cleanup Security plugin Pricing Security tips
Home / Security tips / Website security
May 21, 2026

Two-Factor Authentication for WordPress Admin: Step by Step

What does two-factor authentication mean?

Two factor authentication gives your WordPress login a second check. A stolen password alone shouldn’t open the dashboard. That’s the point.

Two-factor authentication, or 2FA, combines different proofs: something you know, like your password, with something you have, like an authenticator app or security key, or something you are, such as a fingerprint. Usually, you enter your WordPress password, then provide that second proof. No extra password to remember.

You might also see “WordPress admin MFA.” For your admin login, MFA and 2FA mean practically the same thing: 2FA is the two-factor form of multi-factor authentication.

What is 2FA status in WordPress?

2FA status usually tells you whether a WordPress user has set up a second login check through a plugin. “Available” may mean the feature exists, while “enabled” means the account has configured it. Wording varies, so check your plugin’s explanation rather than assuming every user is protected.

Set up WordPress admin 2FA, step by step

For an authenticator app, choose a plugin supporting TOTP. The screens differ, but the setup follows this pattern:

  1. Back up your site. Confirm you can access your hosting account and its file manager or SFTP. You’ll need another route in if login breaks.
  2. Install and activate your plugin. Use the WordPress Plugins area. Activation alone doesn’t mean your account has 2FA enabled.
  3. Find your account’s 2FA settings. These may be in your profile or a plugin settings screen. Select the authenticator app method.
  4. Scan the QR code. Add it through your authenticator app. Label the entry with your website’s name so you don’t confuse it with another account.
  5. Confirm the code. Enter the app’s six-digit code where requested. If it’s about to expire, wait for the next one.
  6. Save recovery codes. Generate them if supported, then store them in a password manager or print them and keep them private. Not just on your phone.
  7. Test a fresh login. Keep your existing session open and sign in through a private browser window. Confirm both password and code work before closing your original session.
  8. Test one recovery code. Keep your original session open. Start another fresh login and use a recovery code at the 2FA prompt as your plugin directs. If it is single-use, mark it used and make sure you still have unused codes before requiring 2FA for staff.
  9. Repeat for other users. Start with administrators, editors and shop managers. Test their access before enforcing 2FA.

Don’t make someone discover an untested login requirement while they’re trying to correct a product listing.

Why administrators need it

An administrator can install plugins, change settings and create users. Hand over that account and you’re handing over the site. A reused password from another service, or a convincing fake login page, can be enough without a second check.

I run a small WordPress security and maintenance agency in Estonia, working with businesses internationally. My take: protect administrators first, then everyone who can change content, products, bookings or orders. Our guide on how to secure the WordPress login page covers the other checks I’d put alongside 2FA.

Which 2FA method should you choose?

WordPress core has no built-in 2FA. You add it with a plugin, and the methods available depend on that plugin. My ranking:

  • Security key or passkey: Strongest here when properly supported. Check compatibility; support for a physical key doesn’t automatically mean support for every passkey setup. Carrying another device may feel excessive for some teams.
  • Authenticator app: My usual small-business choice. TOTP codes change every 30 seconds and don’t depend on text or email delivery. Examples include Aegis, 2FAS, Google Authenticator and Microsoft Authenticator.
  • Email code: Convenient, but its protection depends on the receiving mailbox. Someone who controls that inbox can obtain the code too.
  • SMS: Better than a password alone, but weakest here. SIM swapping can transfer your phone number to someone else’s device.

The free Two Factor plugin, maintained by WordPress.org contributors, supports TOTP, email, backup codes and FIDO U2F security keys. Wordfence Login Security and WP 2FA are other options to assess. Bearmor Security also offers free email 2FA for administrators; for help choosing and configuring protection, there’s our 2FA setup service.


Roll it out and check every user’s status

Your protected account doesn’t protect another administrator. Give everyone their own login, help them finish setup, then check each user’s 2FA status. No shared administrator account. It makes both accountability and recovery messier.

If your plugin supports enforcement by role, enable it after everyone has tested access and saved recovery codes. Otherwise, use an onboarding checklist and review accounts when staff change. Remove access when someone leaves; 2FA isn’t a reason to keep an old account around.

Lost your phone? Start with recovery codes

If you lose your phone those saved codes are your first option. Use one, register your replacement authenticator and refresh your recovery codes as needed. Used backup codes generally can’t be reused.

No codes? Another trusted administrator may be able to reset your 2FA through the plugin. If that’s unavailable, an administrator with server access can use SFTP or the hosting file manager to rename the relevant plugin folder inside wp-content/plugins. This normally disables that plugin, including its 2FA protection for other users.

It’s temporary recovery, not a fix. Follow the plugin’s recovery instructions to reset your account, restore the folder name and reactivate protection. Check enforcement again afterward. Know who holds hosting access before you need them.

Quick questions before you finish

Does 2FA protect API connections too?

Not automatically. WordPress application passwords bypass the interactive 2FA prompt for API access. Audit WordPress application passwords and connection keys after setup and revoke unused ones. XML-RPC handling also varies: check whether you use it and what your plugin protects before disabling anything.

Can someone still get in with 2FA enabled?

Yes. A stolen logged-in session or cookie can bypass a fresh login. Vulnerable plugins and weak hosting credentials are seperate problems too. Keep software updated, secure hosting access and add login limiting. Our login protection service helps restrict repeated password attempts; it complements 2FA rather than replacing it.

What’s the first check I should do today?

Open your user list and check every administrator’s 2FA status. Then test your own login in a private window and confirm you can find your recovery codes without reaching for your phone.