Two Factor icon
Security

Two Factor

Enable Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), email, and backup verification codes.

Is Two Factor safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 2 months ago (version 0.17.0).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.1; the current release is 7.1. Needs PHP 7.4+.
  • Pass: Well rated Rated 4.8/5 by 209 users on WordPress.org.
  • Pass: Widely used Active on 100,000+ sites.
  • Pass: Responsive support 4 of 5 support threads resolved in the last two months.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 17, 2026. Always keep plugins updated and test changes on a staging site.

Overview

Two Factor describes itself as: “Enable Two-Factor Authentication (2FA) using time-based one-time passwords (TOTP), email, and backup verification codes.”

It is active on 100,000+ WordPress sites and rated 4.8 out of 5 by 209 users on WordPress.org. Developers can extend it through 15 actions and 45 filters, listed below.

We haven't published a hands-on review of Two Factor yet. Want one, or need help with it? Send us a request.

How to install Two Factor

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Two Factor” and pick the one by WordPress.org.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install two-factor --activate

Requirements: WordPress 7.0+ · PHP 7.4+ · tested up to WordPress 7.1.4

Hooks & customisation

Two Factor 0.17.0 fires 15 actions and 45 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

two-factor — top hooks
// Fires after the two-factor authentication input field.
do_action( 'two_factor_after_authentication_input', $this );

// Fires after the two-factor authentication prompt text.
do_action( 'two_factor_after_authentication_prompt', $this );

// Fires before the two-factor authentication prompt text.
do_action( 'two_factor_before_authentication_prompt', $this );

// This action is documented in wp-login.php
do_action( 'login_footer' );

// This filter is documented in the get_providers() method
apply_filters( 'two_factor_providers', $providers );

// Filters the login page body classes.
apply_filters( 'login_body_class', $classes, $action );

Browse all 60 hooks with examples →

Two Factor: frequently asked questions

Is Two Factor free?

Yes. Two Factor is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Two Factor safe to use?

Two Factor is actively maintained: the latest version was released 2 months ago. Users rate it 4.8 out of 5 from 209 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Two Factor work with WordPress 7.1?

Yes. Two Factor is tested up to WordPress 7.1, the current release. It requires WordPress 7.0 or later and PHP 7.4 or later.

How many websites use Two Factor?

Two Factor is active on 100,000+ WordPress sites, according to WordPress.org. It is currently at version 0.17.0, last updated on September 28, 2026.

What are the best alternatives to Two Factor?

Plugins that do a similar job and are actively maintained include miniOrange 2FA (10,000+ installs), Vigilant (4,000+ installs), Two Factor (2FA) Authentication via Email (9,000+ installs).

Can I customise Two Factor without editing its code?

Yes. Two Factor 0.17.0 fires 15 actions and 45 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 60 hooks with examples.

Done for you

Need Two Factor to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Two Factor customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with WordPress.org. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

About the developer

WordPress.org

23 plugins · 11+ million installs in total · 21 of 23 updated in the last year

  • Actively maintained
  • Released this month
  • Some plugins look abandoned
72 maintenance
score
Developer profile →

More plugins by WordPress.org

All 23 →

Enables the previous "classic" editor and the old-style Edit Post screen with TinyMCE, Meta Boxes, etc. Supports all plugins that…

8+ million installs Reviewed 4 hooks

Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.

2+ million installs 28 hooks
Gutenberg icon

Gutenberg

3,889

The Gutenberg plugin adds editing, customization, and site building to WordPress. Use it to test beta features before their official…

400,000+ installs Reviewed 105 hooks

Health Check identifies common problems, and helps you troubleshoot plugin and theme conflicts.

200,000+ installs Reviewed 6 hooks

Alternatives in Security

See all →

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam solution for…

5+ million installs Reviewed 43 hooks

Firewall, Malware Scanner, Two Factor Auth, and Comprehensive Security Features, powered by our 24-hour team. Make security a priority with…

5+ million installs 98 hooks

Easily improve site security with WordPress Hardening, Two-Factor Authentication (2FA), Login Protection, Vulnerability Detection and SSL certificate.

3+ million installs 116 hooks

Simplified WordPress management. Manage site info, maintenance, security, & redirects.

3+ million installs 7 hooks