Enable Two-Factor Authentication For WordPress¶
Use this page when adding two-factor authentication to WordPress administrator accounts. Set up recovery options before enforcing 2FA so legitimate users are not locked out.
Choose A 2FA Method¶
WordPress supports 2FA through plugins. Many reputable security plugins include it, and some standalone 2FA plugins support authenticator apps or hardware keys.
Choose a plugin that:
- Is actively maintained.
- Supports your WordPress and PHP versions.
- Provides recovery codes or another recovery path.
- Lets you require 2FA for administrator accounts.
Start with administrator accounts
If you do not want to require 2FA for every user, require it for administrators and anyone who can edit plugins, themes, orders, or users.
Before Enabling 2FA¶
- Confirm you have access to the administrator email address.
- Install an authenticator app or prepare your hardware key.
- Save recovery codes if the plugin provides them.
- Make sure at least one other trusted administrator can help if you lose access.
Enable 2FA¶
The exact screen varies by plugin, but the flow is usually:
- Sign in to WordPress as an administrator.
- Install and activate the 2FA or security plugin.
- Open the plugin's 2FA settings.
- Enable 2FA for your user account.
- Scan the QR code with an authenticator app or register your hardware key.
- Enter the code the app or key provides.
- Save the recovery codes somewhere safe.
- Sign out and test the login flow.
Test The Login¶
After enabling 2FA:
- Open the WordPress login page.
- Enter your username and password.
- Enter the current 2FA code or use your hardware key.
- Confirm you can reach the WordPress dashboard.
If the code fails, wait for the next code and try again. Authenticator app codes expire quickly.
Lost 2FA Device¶
If you lose the phone, key, or app used for 2FA:
- Use recovery codes if you saved them.
- Ask another WordPress administrator to disable 2FA for your user.
- Contact Fused if you cannot access the site and need help reviewing recovery options.
Do not remove 2FA for everyone during recovery
Recover the affected account, then re-enable 2FA. Avoid turning off a useful protection globally unless that is the only way to regain access.
Related Guides¶
-
WordPress security
-
Disable registration