Choose which roles use 2FA
When 2FA is on, every user in the roles you pick is asked for a code on every password login. There is no soft “reminder” setting any more. Email codes are the baseline, so nobody in a selected role can skip the second step.
Pick the roles#
- Go to Settings → Login Shield and open the 2FA tab.
- Make sure Enable 2FA is on.
- Under Apply to roles, tick the roles that must use 2FA.
- Click Save 2FA settings.
Every role is ticked by default. Shield lists the roles your site has, including custom roles from other plugins.
You must keep at least one role ticked. If you untick them all, Shield refuses to save and says: “Not saved: select at least one role for two-factor authentication.”

All roles ticked versus some#
- All roles ticked: Shield treats this as “every role”. Roles added later are covered automatically, such as a new role from a membership plugin.
- Only some ticked: only those roles are challenged. A role added later is not covered until you tick it.
What happens to users in a role you didn’t tick#
They sign in with just a password, with one exception. If they add an authenticator app or passkey to their own account, Shield then challenges them on every login too. So an unticked role can opt in, but can’t be forced.
What happens to users with several roles#
A user is challenged if any of their roles is ticked.
Users can’t opt out#
Users in a ticked role can’t turn 2FA off. They can add a stronger method, or remove it, but email codes always remain. Only an administrator can reset another user’s methods. See “Email codes and backup codes”.
Decide who needs it#
| Role | Suggestion |
|---|---|
| Administrator | Always include. This is the account attackers want most. |
| Editor, Shop manager | Include if they can change content, products or settings. |
| Author, Contributor | Include if your site publishes sensitive content. |
| Customer, Subscriber | Often best left off, to avoid friction. Tick it if accounts hold personal or payment details. |
This is a starting point, so adjust it to your site.
Before you roll it out#
- Check your site can send email. Use the Send test button under Email branding on the Settings tab.
- Add an authenticator app to your own account first. Email-only accounts can be locked out if email fails.
- Tell your users. They will be asked for a code on every login after you save.
- Start with administrators only if you want to test, then widen the roles.
Nudges for administrators#
Shield helps email-only administrators add something stronger:
- A banner at the top of the 2FA tab warns you if you only use email codes, with an Add authenticator app button.
- A notice on the Dashboard says: “You sign in with email codes. Consider adding an authenticator app: if email delivery fails you could be locked out.” It has Add authenticator app and Dismiss buttons. Dismissing hides it for you only.
The security checklist#
On the Checklist tab, the “Two-factor authentication” item checks your settings:
- It warns if 2FA is off.
- It fails if 2FA is on but the Administrator role isn’t ticked (“administrators sign in with just a password”).
- It fails if the
NAHNLS_DISABLE_2FAemergency switch is set. - Otherwise it reports how many administrators have added an authenticator app or passkey, and warns until all of them have.
Troubleshooting#
- “Not saved: select at least one role”: tick at least one role. To stop using 2FA for everyone, turn off Enable 2FA instead.
- A user says they aren’t being asked for a code: their role isn’t ticked, or 2FA is off, or the emergency switch is set.
- A new role isn’t challenged: some roles are ticked, not all. Tick the new role.
- Customers are complaining: untick the Customer role, or leave it off. They can still add a stronger method themselves.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!