🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Email OTP & Two-Factor (2FA) for WooCommerce: ShivWeb Login Verification icon
Actively maintained Tested with WP 7.1 #91 in 2FA

Email OTP & Two-Factor (2FA) for WooCommerce: ShivWeb Login Verification

Free two-factor authentication (2FA) by email OTP for WordPress and WooCommerce logins, including the block checkout. No app, no API keys.

Active installs<10New
Downloads · 30d376▲ 5.6× vs prev. 30d
Rating5/51 reviews
Health score71/100Good
All-time downloads597Since Aug 2026
Support resolved—No recent threads
RequiresWP 6.5PHP 8.1+
Downloads · 7d310▲ 11.9× week over week
Our verdict

Solid choice

Email OTP & Two-Factor (2FA) fo… is a solid plugin choice in 2026, with a few things worth checking first. Is rated 5/5 and was last updated 23 hours ago, and scores 71/100 on our health check.

  • Actively developed — last update 23 hours ago
  • Tested with the latest WordPress (7.1)
  • Small user base (<10 active installs)
  • Very few reviews so far
  • Needs PHP 8.1 or newer

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

316293Sep 4Oct 18Dec 2
Yesterday97
Daily average (1y)6
Peak day125Dec 1, 2026
Last 12 months606

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Email OTP & Two-Factor (2FA… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
2FA >100 508 Best 2FA plugins →
Email OTP #51 361 Best Email OTP plugins →
email verification >100 4,510 Best email verification plugins →
otp login #62 289 Best otp login plugins →
woocommerce >100 10,000 Best woocommerce plugins →

Rating breakdown

★★★★★★★★★★ 5 from 1 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Email OTP & Two-Factor (2FA) for WooCom…

From the official readme · v1.0.4

Description

ShivWeb Login Verification is a free plugin that adds two-factor authentication (2FA) to WordPress and WooCommerce logins with a one-time password (OTP) sent by email. A user signs in with their password as usual, then types the code from their inbox. Someone who has stolen a password but cannot open the inbox stays locked out.

Your users don’t need an authenticator app, and you don’t need an SMS service, an account anywhere, or API keys. Codes go out through your site’s own email, so the SMTP plugin you already use handles delivery.

Many people know this as two-step verification. It is one of the simplest ways to add login security to a WooCommerce store, because customers already have the one thing it needs: their email.

How a login works

  1. The user enters their username and password as normal, on any login form.
  2. The plugin emails them a one-time code and holds the session.
  3. They type the code on a clean verification screen.
  4. They continue exactly where they were going: My Account, the checkout, the dashboard or the page they asked for.

Until the code is entered, the session can’t do anything else. It can’t open other pages, call admin-ajax, use the REST API, post comments or place an order. The check runs on the server, so it can’t be skipped by closing a popup or turning off JavaScript. The verification screen itself works without JavaScript too.

What makes it different

A code field added to one login form only protects that form. This plugin checks the session itself, on the server, after any login. That one design choice is why it covers logins that never show a form, like the WooCommerce block checkout, and why a held session can’t sneak past through admin-ajax, the REST API or the comment form.

It is also built to be easy to trust. There is no account to create, no external service in the middle, no bundled libraries and no hidden upsell. There is no paid version and no monthly allowance of codes to use up, because every code goes out through your own mail setup. The settings fit on one screen, and the safety switches are there from the first minute.

Who it’s for

  • WooCommerce stores that want OTP verification for customer logins, without asking customers to install an app.
  • Membership, course and community sites that want two-factor authentication for specific user roles.
  • Agencies and freelancers who want simple login security on client sites, with a recovery path that can’t lock the client out.
  • Any site that wants email verification for new sign-ups, to stop spam registrations made with made-up email addresses.

What your customers see

After the password, customers see a short, calm page titled “Verify your email”. It shows the address the code went to, partly masked, so they know which inbox to check. They type the six digits and continue.

If the email is slow, a “Send a new code” link appears after a short countdown. A “Log out” link is always there if they want to stop. When they get a code wrong, the message says so in plain words and the field is ready for another try.

The email itself is short: a greeting with their name, the code in large bold digits, how many minutes it stays valid, and a line saying they can ignore the message if they didn’t try to sign in.

Choose who needs a code

Enforcement is role based. Tick the roles that should verify and leave the rest alone. Out of the box only the Customer role is selected, so a store can protect shopper accounts without changing how the team logs in. You can add Subscriber, Author, Editor, Shop manager, Administrator or any custom role your other plugins create.

Administrators are not asked for a code unless you tick that role. We suggest testing the flow with a customer account first, then adding your own role once you have seen it work.

Two-factor authentication for WooCommerce

The plugin was built for WooCommerce from the start, and it covers every place a customer can log in:

  • the My Account login form
  • the classic checkout’s returning customer login
  • the WooCommerce block checkout, which signs customers in through the Store API in the background
  • wp-login.php and wp-admin

A code field added to the login form never appears in the block checkout, because the block checkout signs customers in without showing that form. This plugin checks the session after login, on the server. While a session is waiting for its code, the Store API refuses checkout requests, and a small script sends the shopper to the verification screen. After they verify, they land right back at checkout with their cart intact.

It also guards the less visible WooCommerce routes, such as wc-ajax requests and legacy wc-api callbacks, so a held session can’t slip through a side door. Payment gateway callbacks that come server to server are not affected.

The plugin declares compatibility with WooCommerce’s High-Performance Order Storage (HPOS) and the cart and checkout blocks. WooCommerce is optional: on a site without it, the plugin protects wp-login.php, wp-admin and every other login the same way.

Email verification at registration

You can also require new sign-ups to confirm their email address with a code. This is WooCommerce customer email verification that happens before the account is used, and it works on the WordPress register form and the WooCommerce My Account register form.

  • On register forms, a small popup asks for the code before the account is created. A typo in the email address is caught on the spot.
  • Checkout sign-ups can’t be verified before the account exists, so they are verified right after, at the customer’s first session.
  • Accounts that never verify are removed automatically after a two-day grace period. Accounts with a WooCommerce order and accounts with editing rights are always kept.

Because the address has to receive a real code, this cuts down spam registrations and fake accounts made with made-up email addresses.

Trusted devices

Customers who log in often don’t want a code every time. When they enter a code, they can tick “Trust this device”, and that browser skips the code for as many days as you choose. Set it anywhere from 1 to 365 days, or set it to 0 to turn the option off.

The trust lives in a secure cookie on that one browser, and only hashed tokens are stored on your site. Logging in from a new browser or another computer still asks for a code.

You can’t lock yourself out

Login security plugins are known for locking site owners out. This one is built to make that very hard:

  • Codes stay off until you prove your site can send email. You send yourself a test code from the settings screen and enter it, and only then can the switch be turned on. A broken mailer can’t lock everyone out.
  • Administrators are not gated unless you choose that role.
  • If anything goes wrong later, one line in wp-config.php or one WP-CLI command turns everything off and releases every held session at once.

Why add a second step to your login

Passwords leak all the time. People reuse the same password across shops, newsletters and forums, and when one of those sites is breached, attackers try the leaked email and password pairs everywhere else. Phishing emails, now often written with AI tools, trick people into typing their password on fake pages. Either way, the attacker ends up with a working password.

A second step changes that. With email OTP verification switched on, a correct password is no longer enough. The attacker also needs a fresh code that was just sent to the account owner’s inbox, and that code expires within minutes.

For a WooCommerce store this protects what customers trust you with: their saved addresses, their order history and their account details. For membership, course and community sites it stops shared or leaked passwords from becoming shared accounts.

Good habits for login security

Email codes work best alongside a few simple habits:

  • Send email through an SMTP plugin or a transactional email service, so codes arrive in seconds and don’t land in spam.
  • Start with the Customer role, watch a few real logins, then add other roles.
  • Tell your customers before you switch it on, for example in a store notice or a short email, so the new step doesn’t surprise them.
  • Keep “Trust this device” short on stores where people share computers.
  • Encourage everyone, and especially your team, to protect their email account with its own two-step login, since that inbox is now the second step.

Rate limits and abuse protection

Every way of requesting or entering a code has a limit, so the code screen can’t be used to flood an inbox or guess codes:

  • a cooldown between “Send a new code” requests
  • a maximum number of codes per login attempt
  • a lockout after too many wrong codes, for a time you choose
  • a cap on how many codes one account can receive in a set window
  • per email and per IP limits on the sign-up popup

Codes are generated with a secure random generator and stored only as keyed hashes, never in plain text. Each code expires after the number of minutes you set.

Email that arrives

Codes are sent through wp_mail(), the same way WordPress sends password resets, so your SMTP plugin or email service delivers them.

You can change the sender name and address, the subject and the message. The email body supports simple HTML and these placeholders: {otp}, {site_name}, {user_name}, {user_email} and {validity_minutes}. Every message on the verification screen can be changed too, so the wording matches your store.

Works with your setup

  • WordPress login (wp-login.php) and the admin area
  • WooCommerce My Account, classic checkout and block checkout
  • social login and other plugins that log users in through WordPress’s normal login
  • Ultimate Member, BuddyPress, bbPress, Tutor LMS, LearnPress, Easy Digital Downloads, Dokan and ProfilePress, each tested through its own login form
  • WPS Hide Login, LoginPress, Limit Login Attempts Reloaded, Loginizer, Wordfence and Really Simple Security, each tested running alongside
  • the REST API and XML-RPC: for roles that need a code, logging in there with the main password is blocked, so apps and scripts use Application Passwords instead
  • persistent session storage such as Redis
  • WP Mail SMTP, FluentSMTP, Easy WP SMTP, GoSMTP, Post SMTP and SureMail, each tested

Lightweight and private

The plugin does one job. It adds no custom database tables, writes no log files and calls no outside service to send codes. Its data is one settings option, a few small user meta entries and the WordPress session record, which is cleared when the user logs out. Uninstalling removes all of it.

Privacy and personal data

To send a code, the plugin uses the email address already saved on the user’s account. It doesn’t collect any new personal data, and codes are never stored in a readable form. The only cookie it sets is the optional “Trust this device” cookie, which holds a random token, not personal details.

Codes are sent from your own site through your own mail setup. No third party sees them. This keeps the plugin simple to cover in your privacy policy: the email address is used to send a security code, and that is all.

Accessibility and mobile

The verification screen is built to work for everyone. The code field is a proper labelled input, error messages are announced to screen readers, and the layout fits small phone screens. The field is marked as a one-time code, so phones show a number keypad and can offer to fill the code in from the email. The screen is also kept out of search engines.

For developers

  • SWLV_DISABLE_OTP in wp-config.php turns enforcement off for emergencies.
  • WP-CLI: wp swlv status, wp swlv disable and wp swlv reset-user <id|login|email>.
  • Filters: swlv_enforce to switch enforcement off in code, swlv_abandoned_account_max_age and swlv_delete_abandoned_account to control the sign-up cleanup, and swlv_registration_ip_send_limit for the sign-up throttle.

Settings at a glance

Everything lives on one screen under Settings, then Email Verification:

  • Require a code at login, protected by the test-code check
  • Roles that need a code
  • Verify email at registration
  • Code length, from 4 to 8 digits
  • How many minutes a code stays valid
  • The wait before “Send a new code” works again
  • How many codes one login attempt may request
  • How many wrong tries are allowed, and how long the lockout lasts
  • How many codes one account may receive in a set window
  • How many days “Trust this device” lasts
  • Sender name and address, email subject and email body
  • Every message shown on the verification screen

Features

  • Two-factor authentication with email OTP codes, no authenticator app
  • Pick exactly which user roles must verify
  • WooCommerce: My Account, classic checkout and block checkout
  • Email verification for new registrations, with automatic cleanup
  • Trusted devices, remembered for as many days as you choose
  • Rate limits on resends, wrong attempts and codes per account
  • Your own email template and on-screen messages
  • No external service for codes, no API keys, no per-message fees
  • Recovery through a wp-config.php constant or WP-CLI

Recovery

If you ever lock yourself out, add define( 'SWLV_DISABLE_OTP', true ); to wp-config.php, or run wp swlv disable with WP-CLI. Both release every held session immediately. To unstick one user (send limit reached, mailbox typo), run wp swlv reset-user <id|login|email>.

Usage data (opt-in)

After activation, the plugin asks an administrator whether it may send a short weekly report to Shiv Web, the plugin author, at shivweb.com. Nothing is sent unless an administrator clicks Allow. The report holds the site address, the WordPress, PHP, WooCommerce and plugin versions, the site language and theme, and which plugin features are on. The admin email is added only if the administrator ticks a separate box. User accounts, customer data and login codes are never sent. You can switch it on or off at any time under Settings, Email Verification, in the “Help improve the plugin” section.

When you deactivate the plugin from the Plugins screen, a short optional survey asks why. Your answer is sent only if you click “Send and deactivate”.

Both go to https://shivweb.com/wp-json/shivweb-insights/v1/. See the Shiv Web privacy policy.

Translations

The plugin is fully translation ready. You can help translate it into your language on translate.wordpress.org.

Installation

  1. In your WordPress admin, go to Plugins, then Add New Plugin, and search for “ShivWeb Login Verification”.
  2. Install and activate the plugin. Nothing is enforced yet, so nobody’s login changes.
  3. Go to Settings, then Email Verification.
  4. Choose the roles that should verify. Customer is selected by default.
  5. Click “Send a test code to my email”, check your inbox, and enter the code in the Test code field.
  6. Tick “Require a code at login” and save.
  7. Log in with a test account of a selected role to see the flow from your customer’s side.

Changelog

Stops a login that is waiting for its code earlier in each page load, and holds logins that other plugins make very early.

1.0.4

  • Fix: A login that is waiting for its code is now stopped earlier in each page load, before other plugins run their own request handlers. Pages, admin requests and API calls give the same answers as before: the code screen, or an “email verification is required” error.
  • Fix: A login that another plugin makes very early in a page load, such as an emailed login link, is now always held for a code. Before, a login made before this plugin had started was let through.
  • Fix: The debug log no longer gets a “translation loading was triggered too early” notice after such a login.

1.0.3

  • Fix: LearnPress checkout. Logging in or signing up at the LearnPress checkout no longer creates the order or enrols the user before the code is entered. The user enters the code, returns to the checkout and finishes there.
  • Fix: With “Verify email at registration” on, the code popup now appears on the bbPress sign-up form.
  • Fix: With “Verify email at registration” on, the LearnPress checkout sign-up form no longer stops working on block themes.
  • Tested with LearnPress 4.5.0 and bbPress 2.6.23.

1.0.2

  • New: Works on PHP 8.1 and on WordPress 6.5 or newer. Earlier versions needed PHP 8.2 and WordPress 7.0.
  • Tested the login, My Account and block checkout flows on WordPress 6.5 with WooCommerce 9.4.5.

1.0.1

  • New: Optional weekly usage report. Nothing is sent until an administrator clicks Allow.
  • New: Optional short survey when you deactivate the plugin.
  • Fix: Turning “Verify email at registration” off and on again could let the daily cleanup remove an active account with no orders. Logging in now clears the account’s unverified tag while the setting is off.
  • Fix: Sessions waiting for a code are now also held on WooCommerce ?wc-api= addresses.
  • Fix: On busy shops the daily cleanup now reaches the oldest unverified sign-ups first.
  • Fix: Behind Cloudflare or another proxy, the register popup no longer says “too many codes” for everyone after 15 sign-ups in an hour. Each email address is still limited to 5 codes an hour.
  • Tested with WordPress 7.2.

1.0.0

  • Initial release.

Full changelog on WordPress.org →

Screenshots

The verification screen a user sees after entering their password.
The verification screen a user sees after entering their password.
WooCommerce block checkout: a returning customer logs in, enters the emailed code and lands back at checkout with the cart intact.
WooCommerce block checkout: a returning customer logs in, enters the emailed code and…
The login code email.
The login code email.
Settings: choose which roles need a code. Turning it on takes a test code sent to your own inbox, so a broken mailer can't lock anyone out.
Settings: choose which roles need a code. Turning it on takes a test code sent to your…
Email verification on the register form, before the account is created.
Email verification on the register form, before the account is created.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Email OTP & Two-Factor (2FA)… alternatives

All 2FA plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Wordfence Security – Firewall, Malware Scan, and Login Security Wordfence Security Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by… by Mark Maunder 5M+ ★★★★★★★★★★ 4.7 (5.1K) 20 hours ago 95
2 Really Simple Security – Simple and Performant Security (formerly Really Simple SSL) Really Simple Security Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA)… by Really Simple Plugins 3M+ ★★★★★★★★★★ 4.9 (8.9K) 1 week ago 96
3 Limit Login Attempts Security – Login Security, 2FA, Firewall, Brute Force Prevention Limit Login Attempts Security WordPress login security with brute force protection, Two-factor authentication (2FA/MFA)… by WPChef 1M+ ★★★★★★★★★★ 4.8 (1.5K) 1 day ago 89
4 Two Factor Two Factor Enable Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), email… by WordPress.org 200K+ ★★★★★★★★★★ 4.8 (209) 2 months ago 91
5 WP 2FA – Two-factor authentication for WordPress WP 2FA – Two-factor authentication for WordPress Get better WordPress login security; add two-factor authentication (2FA) for all your users… by Melapress 100K+ ★★★★★★★★★★ 4.7 (184) 3 weeks ago 89
6 All In One Login All In One Login Secure and customize your WordPress login page with a custom login URL, 2FA, CAPTCHA, and… by Saad Iqbal 50K+ ★★★★★★★★★★ 3.6 (35) 3 days ago 88
7 WP Hide & Security Enhancer WP Hide & Security Enhancer Protect your website by concealing vulnerable WordPress traces, plugins, themes… by nsp-code 50K+ ★★★★★★★★★★ 4.3 (275) 3 weeks ago 92
8 Security Plugin, Firewall & Malware Scanner with Auto Removal Security Plugin, Firewall & Malware Scanner with Auto Remov… Protect WordPress from malware, hackers, brute-force attacks & suspicious traffic. Includes… by CleanTalk Inc 40K+ ★★★★★★★★★★ 4.7 (399) 2 days ago 93
9 Shield Security – Smart Bot Blocking, Brute-Force Login Protection & File Scanning Shield Security Smart WordPress security that blocks bots automatically, guides you to what matters, and… by Paul 30K+ ★★★★★★★★★★ 4.8 (1K) 1 week ago 94
10 Two Factor Authentication Two Factor Authentication Secure WordPress login with Two Factor Authentication - supports WP, Woo + other login… by David Anderson / Team Updraft 20K+ ★★★★★★★★★★ 4.4 (77) 2 weeks ago 87

FAQ

Email OTP & Two-Factor (2FA) for Wo…: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Email OTP & Two-Factor (2FA) fo… free?

Yes. Email OTP & Two-Factor (2FA) fo… is free to download and use from the official WordPress.org plugin directory.

Is Email OTP & Two-Factor (2FA) fo… safe to use in 2026?

Email OTP & Two-Factor (2FA) fo… is a solid plugin choice in 2026, with a few things worth checking first. Is rated 5/5 and was last updated 23 hours ago, and scores 71/100 on our health check.

How many websites use Email OTP & Two-Factor (2FA) fo…?

Email OTP & Two-Factor (2FA) fo… is active on <10 WordPress websites and has been downloaded 597 times since it launched in August 2026. It was downloaded 376 times in the last 30 days.

Does Email OTP & Two-Factor (2FA) fo… work with WordPress 7.1?

Yes. The developer has tested Email OTP & Two-Factor (2FA) fo… up to WordPress 7.2, the latest release. It requires WordPress 6.5 or newer.

What PHP version does Email OTP & Two-Factor (2FA) fo… need?

Email OTP & Two-Factor (2FA) fo… requires PHP 8.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Email OTP & Two-Factor (2FA) fo… last updated?

The latest version, 1.0.4, was released on December 2, 2026 (23 hours ago).

Who makes Email OTP & Two-Factor (2FA) fo…?

Email OTP & Two-Factor (2FA) fo… is developed and maintained by shivweb.

What are the best alternatives to Email OTP & Two-Factor (2FA) fo…?

The most popular alternatives to Email OTP & Two-Factor (2FA) fo… are Wordfence Security (5M+ installs), Really Simple Security (3M+ installs) and Limit Login Attempts Securi… (1M+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open