How to Safely Configure WordPress Two-Factor Authentication for Admin Logins

Learn how to add two-factor authentication (2FA) to your WordPress admin logins, reduce account takeover risk, and avoid locking out legitimate users.

Why Two-Factor Authentication Matters for WordPress

Your WordPress username and password are often the only thing standing between attackers and your entire site. Two-factor authentication (2FA) adds a second verification step (like a one-time code) so that even if a password is stolen, logins are still blocked.

Modern security guidance strongly recommends multi-factor authentication for administrator accounts because passwords alone are frequently reused, guessed, or phished. Source

This guide walks you through a safe, practical way to enable 2FA on your WordPress site without locking out your team.

Before You Start: Safety Checklist

  • Confirm you have full admin access to WordPress and your hosting control panel.
  • Make a fresh backup of your site and database (via your host or your backup plugin).
  • Have a second admin user ready (or know how to create one) in case your main account is misconfigured.
  • Decide who must use 2FA (all users vs. only admins/editors).

Understanding Your 2FA Options

Most WordPress 2FA solutions rely on one of these methods:

  • Time-based one-time passwords (TOTP) using an authenticator app (e.g., codes that refresh every 30 seconds).
  • Backup recovery codes you store securely in case you lose your device.
  • WebAuthn / security keys (hardware keys or built-in device authenticators) for stronger phishing-resistant protection. Source

For most business WordPress sites, TOTP + backup codes is the best balance of security and usability.

Step 1 – Choose a Reputable 2FA Plugin

WordPress core does not yet include 2FA by default, so you will use a plugin. When evaluating options, look for:

  • Active maintenance and recent updates.
  • Clear documentation and support.
  • Support for TOTP apps and backup codes.
  • Role-based rules (e.g., require 2FA for admins only).

Always review the plugin’s details and changelog in the official directory before installing. Source

What You Should See

On the plugin’s page in the WordPress.org directory, you should see:

  • “Last updated” within the past year.
  • Tested up to a recent WordPress version.
  • A clear description of 2FA features and setup steps.

Step 2 – Install and Activate the 2FA Plugin

  1. Log in to your WordPress admin as an administrator.
  2. Go to Dashboard ? Plugins ? Add New.
  3. Search for your chosen 2FA plugin by name.
  4. Click Install Now, then Activate.

What You Should See

After activation, you should see either:

  • A new menu item in the left sidebar (e.g., “Security” or the plugin name), or
  • A new section under Users ? Profile or Users ? Your Profile for 2FA settings.

Step 3 – Configure Global 2FA Settings Safely

Next, configure how 2FA behaves across your site. Exact labels vary by plugin, but the concepts are similar.

A. Decide Who Must Use 2FA

  1. Open the plugin’s settings page (for example, Dashboard ? Settings ? Security or a dedicated menu).
  2. Find the section for Enforcement or Required Roles.
  3. At minimum, require 2FA for Administrators. Many sites also include Editors and Shop Managers (if using WooCommerce).

Requiring 2FA for high-privilege roles aligns with the principle of least privilege, a core security best practice. Source

B. Choose Allowed 2FA Methods

In the plugin’s methods or providers section:

  • Enable TOTP authenticator apps (recommended default).
  • Enable backup recovery codes and ensure users are prompted to save them.
  • If available and appropriate, enable WebAuthn / security keys for admins who can manage hardware keys.
  • Avoid SMS-only 2FA if possible, as it is more vulnerable to SIM-swapping attacks.

C. Configure Grace Periods and Lockout Behavior

To avoid locking out your team:

  • Set a short grace period (for example, 3–7 days) during which users can log in and set up 2FA before it becomes mandatory.
  • Enable administrator override or emergency bypass if your plugin supports it.
  • Document how to reset 2FA for a user (usually via an admin screen or database option) in case they lose access.

Step 4 – Set Up 2FA on Your Own Account

Before enforcing 2FA for everyone, configure it on your own admin account and confirm it works.

  1. Go to Users ? Profile (or Users ? Your Profile).
  2. Scroll to the 2FA section and click Enable or Set up two-factor authentication.
  3. Open your authenticator app and choose Add account or Scan QR code.
  4. Scan the QR code displayed in WordPress, or manually enter the secret key.
  5. Enter the 6-digit code from your app into the WordPress field and click Verify or Activate.
  6. Generate and securely store your backup recovery codes (password manager or secure document).

What You Should See

After saving, you should see a confirmation message such as “Two-factor authentication is enabled for your account” and a list or download option for backup codes.

Step 5 – Test the 2FA Login Flow

Now verify that the login experience works as expected.

  1. Log out of WordPress completely.
  2. Visit your login page (typically /wp-login.php or your custom login URL).
  3. Enter your username and password as usual.
  4. Confirm that you are prompted for a one-time code from your authenticator app or security key.
  5. Enter the code and ensure you are successfully logged in.

What You Should See

The login process should now be:

  1. Username + password accepted.
  2. Additional screen asking for a 2FA code or prompting you to use a security key.
  3. Successful redirect to the Dashboard after entering a valid code.

Step 6 – Roll Out 2FA to Your Team

With your own account working, you can safely roll out 2FA to other users.

A. Communicate Expectations

Send a short internal message explaining:

  • Why 2FA is being added (protecting the business and client data).
  • Which roles are required to use it and by what date.
  • That they must save backup codes in case they lose their phone.

B. Provide Simple Setup Instructions

For each user, the process is usually:

  1. Log in to WordPress.
  2. Go to Users ? Profile.
  3. Enable 2FA and scan the QR code with their authenticator app.
  4. Verify the code and save backup codes.

C. Monitor Adoption

Many 2FA plugins provide a list of which users have completed setup. Use this to:

  • Follow up with users who have not enabled 2FA before the grace period ends.
  • Confirm that all administrator-level accounts are protected.

Step 7 – Plan for Lost Devices and Recovery

Even with 2FA, you need a clear recovery plan so legitimate users are not permanently locked out.

  • Backup codes: Encourage users to store them in a password manager or secure file.
  • Admin reset: Document how an administrator can disable or reset 2FA for a user from the dashboard.
  • Hosting access: As a last resort, know how to disable the 2FA plugin via FTP or your hosting file manager if all admins are locked out.

For example, you can rename the plugin’s folder under wp-content/plugins to temporarily disable it, then log in and correct your configuration. Source

Elementor and 2FA: What to Expect

Two-factor authentication protects logins, not specific page builders. Once you successfully complete 2FA and reach the WordPress dashboard:

  • You can edit content as usual via Dashboard ? Pages ? Edit with Elementor.
  • 2FA will not change how Elementor loads or how you publish updates.
  • If you are unexpectedly logged out while editing, you may need to log in again and pass 2FA before saving changes.

Ongoing Maintenance and Review

2FA is not a one-time task. Build it into your regular security maintenance:

  • Review 2FA plugin updates during your normal WordPress update cycle.
  • Periodically audit which users have 2FA enabled, especially admins.
  • Remove or downgrade unused high-privilege accounts.
  • Combine 2FA with other hardening steps like strong passwords and limited login attempts. Source

With a carefully planned rollout, WordPress two-factor authentication significantly reduces the risk of account takeover while keeping your team’s day-to-day workflow smooth.

Leave a Reply

readers also liked

Need Help With Your Website?

If you’re reading this because you’re planning a website—or trying to improve one—you don’t have to guess your way through it.

I offer a free 30-minute consultation where we’ll talk through your goals, your budget, and the most efficient way to get a professional website online.

Whether you need full website design, help choosing the right platform, guidance on hosting, or a clear plan you can execute yourself, I’ll give you direct, practical advice tailored to your situation.

Even if you don’t move forward with my services, you’ll leave the call knowing exactly what your next step should be.

Give us a call at
(208) 449-4466

Or give us your info and we will call you.

Give us a call at (208) 449-4466
Or give us your info and we will call you.

Get a Quote/Contact Form
By submitting this form, you acknowledge that you have read and agree to our Privacy Policy and Terms & Conditions.

Report an Issue

Flag incorrect info, broken media, or unclear steps. we review every report.

You’re reporting: {Post Title}

Content Report

By submitting this form, you acknowledge that you have read and agree to our Privacy Policy and Terms & Conditions.

Request a New Topic

Suggest a tutorial, guide, or course idea you’d like to see added. I review every submission.

Topic Request (Knowledge Base)

By submitting this form, you acknowledge that you have read and agree to our Privacy Policy and Terms & Conditions.

Websites That Work as Hard as You Do

Are you ready to grow your business?
Call (208) 449-4466 or schedule an in-person meeting today.