Most WordPress break-ins through the login use a password that was guessed or leaked from another site. Two-factor login adds a second step: after the password, the person enters a 6-digit code sent by email or shown in an authenticator app on their phone. Without that code, the password is useless.
Before you switch it on
Email codes only work if WordPress email arrives quickly and does not land in spam.
- Open Keel › Setup › Notifications and press Send test email.
- If it arrives within a minute in the inbox, you are ready.
- If it is slow, in spam or missing, set up SMTP first.
Tell your team a day before: “After your password, you will get a 6-digit code by email. If it does not arrive within a minute, check spam.”
Turn it on
- Open Keel › Login & accounts › Two-factor login.
- Switch on Turn on two-factor login and save.
- Log out, and log in again. After your password, Keel emails you a code. Enter it.
From now on, everyone receives a code by email after their password. Nobody has to set anything up first, which is why email codes are the easiest way to protect a whole team on day one.
Choose who needs it (Keel Pro)
Who needs it limits two-factor login to the roles you tick, for example Administrator, Editor and Shop manager. Leave everything unticked to protect every user. On shops and membership sites, protecting staff roles and leaving customers alone is a common, sensible choice.
Authenticator apps (Keel Pro)
With Offer an authenticator app after an email login, Keel shows a QR code once after someone logs in with an email code. They scan it with Google Authenticator, Microsoft Authenticator, 1Password, Authy or any similar app. App codes appear instantly and work offline, without depending on email. People can decline and keep email codes, or set up the app later in their profile.
Login links (Keel Pro)
Login links let people log in with a one-time emailed link instead of a password. People who use an authenticator app still enter their app code after the link. See log in with a one-time email link.
Locked out?
If codes stop arriving (for example because email broke), use the rescue switch:
- Open
wp-config.phpin the main WordPress folder with your host’s file manager or FTP. - Add this line above
/* That's all, stop editing! */:
define( 'KEEL_DISABLE_2FA', true );
- Log in, fix email, then remove the line again.
See locked out of WordPress for every rescue switch.
Good to know
- Wrong codes count as failed logins, so guessing codes gets an address blocked like guessing passwords.
- Codes expire after a short time and work only once.
- Two-factor events (sent, used, failed) appear in the security log.
Every setting on this screen
The same explanations you see next to each setting in Keel.
Keel › Login & accounts › Two-factor login
| Setting | What it does |
|---|---|
| Turn on two-factor login | Everyone receives a code by email after their password. Send a test email above first. Locked out? Add define( 'KEEL_DISABLE_2FA', true ); to wp-config.php. |
| Who needs it (Pro) | Tick roles to limit it to them. Leave everything unticked to protect every user. |
| Offer an authenticator app after an email login (Pro) | Shows a QR code once after login. App codes arrive instantly and work offline. Users can decline and keep email codes, or set it up later in their profile. |