Title: WP 2FA &#8211; Two-factor authentication for WordPress
Author: Melapress
Published: <strong>20. měrca 2020</strong>
Last modified: 14. oktobra 2026

---

Tykace pytaś

![](https://ps.w.org/wp-2fa/assets/banner-772x250.png?rev=3270687)

![](https://ps.w.org/wp-2fa/assets/icon-256x256.png?rev=2961533)

# WP 2FA – Two-factor authentication for WordPress

 Wót [Melapress](https://profiles.wordpress.org/melapress/)

[Ześěgnuś](https://downloads.wordpress.org/plugin/wp-2fa.4.2.1.zip)

[Live Preview](https://dsb.wordpress.org/plugins/wp-2fa/?preview=1)

 * [Drobnostki](https://dsb.wordpress.org/plugins/wp-2fa/#description)
 * [Pógódnośenja](https://dsb.wordpress.org/plugins/wp-2fa/#reviews)
 * [Wuwiśe](https://dsb.wordpress.org/plugins/wp-2fa/#developers)

 [Pódpěra](https://wordpress.org/support/plugin/wp-2fa/)

## Wopisanje

### A free and easy-to-use two-factor authentication plugin for WordPress

Add an extra layer of security to your WordPress website login and protect your 
users. Enable two-factor authentication (2FA), the best protection against password
leaks, automated password guessing, and brute force attacks.

Use the WP 2FA plugin to enable two-factor authentication for your WordPress administrator,
enforce 2FA for all your website users, or for users with specific roles. This plugin
is very easy to use; everything can be configured via wizards with clear instructions,
so even non-technical users can set up 2FA without requiring technical assistance.

### 🔒 WP 2FA key plugin features and capabilities

 * **Passkeys support** for passwordless logins
 * **Free two-factor authentication (2FA)** for all users
 * **Multiple 2FA methods** supported, including authenticator app (TOTP) and code
   over email
 * **Developer API** to integrate any alternative 2FA method (WhatsApp, OTP Token,
   etc.)
 * **Universal 2FA app support** – works with Google Authenticator, Authy, and any
   TOTP-compatible app
 * **Backup codes** (16 digits) for recovery access
 * **Wizard-driven setup** – no technical knowledge required
 * **2FA policies** to enforce setup with grace periods or instant activation
 * **REST API endpoints** for custom integrations and headless WordPress setups
 * **Dashboard-free setup** – users can configure 2FA without WP admin access
 * **Editable email templates** for full customization
 * **Much more!**

[Features](https://melapress.com/wordpress-2fa/features/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
| [Getting Started](https://melapress.com/support/kb/wp-2fa-plugin-getting-started/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
| [Get the Premium!](https://melapress.com/wordpress-2fa/pricing/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)

### 💎 Upgrade to WP 2FA Premium and get even more benefits

The premium version of WP 2FA comes bundled with even more features to take your
WordPress website login security to the next level.

With the premium edition of WP 2FA, you get more 2FA methods, 1-click integration
with WooCommerce, trusted devices feature, extensive white labeling capabilities,
and much more!

[Check out WP 2FA Premium!](https://melapress.com/wordpress-2fa/pricing/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)

### Premium features list

 * **Everything in the free version**
 * **Full white labeling capabilities** to change all text and visuals in the wizards,
   emails, SMS, and 2FA pages
 * **Support for multiple passkeys per user** for flexible passwordless logins
 * **Zero-setup email 2FA** that automatically enrolls users without manual configuration
 * **YubiKey hardware key support** for enterprise-grade security
 * **Additional 2FA methods** such as SMS, email link, and more
 * **Trusted devices** so users can log in without 2FA for a configured period
 * **Require 2FA on password reset** to strengthen account protection
 * **Allow next user login without 2FA** to help recover accounts locked out of 
   authentication
 * **One-click WooCommerce integration** to enable 2FA for customers and store admins
 * **And much more!**

Refer to the [WP 2FA plugin features and benefits page](https://melapress.com/wordpress-2fa/features/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
to learn more about the benefits of upgrading to WP 2FA Premium.

### 🛠️ Free and premium support

Support for the free edition of WP 2FA is free on the [WordPress support forums](https://wordpress.org/support/plugin/wp-2fa/).
Premium world-class support via one-to-one email is available to the Premium users–
[upgrade to premium](https://melapress.com/wordpress-2fa/pricing/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
to benefit from email support.

For any other queries, feedback, or if you simply want to get in touch with us, 
please use our [contact form](https://melapress.com/contact/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa).

#### MAINTAINED & SUPPORTED BY MELAPRESS

Melapress develops high-quality WordPress management and security plugins, such 
as Melapress Login Security, Melapress Role Editor, and WP Activity Log; the #1 
user-rated activity log plugin for WordPress.

Browse our list of [WordPress security and administration plugins](https://melapress.com/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
to see how our plugins can help you better manage and improve the security and administration
of your WordPress websites and users.

### Installing WP 2FA

### From within WordPress

 1. Navigate to ‘Plugins‘ > ‚Add New’
 2. Search for ‘WP 2FA’
 3. Install & activate WP 2FA from your Plugins page

### Manually

 1. Download the plugin from the WordPress plugins repository
 2. Unzip the zip file and upload the folder to the ‚/wp-content/plugins/ directory‘
 3. Activate the WP 2FA plugin through the ‘Plugins’ menu in WordPress

### As featured on:

 * [WP Beginner](https://www.wpbeginner.com/plugins/how-to-add-two-factor-authentication-for-wordpress/)
 * [IsitWP](https://www.isitwp.com/best-wordpress-security-authentication-plugins/)
 * [WP Astra](https://wpastra.com/two-factor-authentication-wordpress/)
 * [MainWP](https://mainwp.com/how-to-use-the-wp-2fa-plugin-on-your-child-sites/)
 * [FixRunner](https://www.fixrunner.com/wordpress-two-factor-authentication/)
 * [Inmotion Hosting](https://www.inmotionhosting.com/support/edu/wordpress/plugins/wp-2fa/)
 * [WP Marmite](https://wpmarmite.com/en/wordpress-two-factor-authentication/)

## Screenshots

[⌊The first-time install wizard allows you to set up 2FA on your website and for
your users within seconds.⌉⌊The first-time install wizard allows you to set up 2FA
on your website and for your users within seconds.⌉[

The first-time install wizard allows you to set up 2FA on your website and for your
users within seconds.

[⌊The wizards make setting up 2FA very easy, so even non-technical users can set
up 2FA without requiring help.⌉⌊The wizards make setting up 2FA very easy, so even
non-technical users can set up 2FA without requiring help.⌉[

The wizards make setting up 2FA very easy, so even non-technical users can set up
2FA without requiring help.

[⌊Setting up Passkeys is also a straightforward in WP 2FA. The users just have to
follow the step by step instructions.⌉⌊Setting up Passkeys is also a straightforward
in WP 2FA. The users just have to follow the step by step instructions.⌉[

Setting up Passkeys is also a straightforward in WP 2FA. The users just have to 
follow the step by step instructions.

[⌊You can require users to enable 2FA and also give them a grace period to do so.⌉⌊
You can require users to enable 2FA and also give them a grace period to do so.⌉[

You can require users to enable 2FA and also give them a grace period to do so.

[⌊Users can also use one-time codes via email as a two-factor authentication method.⌉⌊
Users can also use one-time codes via email as a two-factor authentication method
.⌉[

Users can also use one-time codes via email as a two-factor authentication method.

[⌊Users can configure and use Passkeys to log in to the website when using WP 2FA.⌉⌊
Users can configure and use Passkeys to log in to the website when using WP 2FA.⌉[

Users can configure and use Passkeys to log in to the website when using WP 2FA.

[⌊Users can easily manage their Passkeys from their user profile page.⌉⌊Users can
easily manage their Passkeys from their user profile page.⌉[

Users can easily manage their Passkeys from their user profile page.

[⌊You can use policies to require users to instantly set up and use 2FA, so the 
next time they log in, they will be prompted with this.⌉⌊You can use policies to
require users to instantly set up and use 2FA, so the next time they log in, they
will be prompted with this.⌉[

You can use policies to require users to instantly set up and use 2FA, so the next
time they log in, they will be prompted with this.

[⌊You can give users a grace period until they configure 2FA. You can also specify
what the plugin should do once the grace period is over.⌉⌊You can give users a grace
period until they configure 2FA. You can also specify what the plugin should do 
once the grace period is over.⌉[

You can give users a grace period until they configure 2FA. You can also specify
what the plugin should do once the grace period is over.

[⌊It is recommended for all users to also generate backup codes, in case they cannot
access the primary device.⌉⌊It is recommended for all users to also generate backup
codes, in case they cannot access the primary device.⌉[

It is recommended for all users to also generate backup codes, in case they cannot
access the primary device.

[⌊In the user profile, users only have a few 2FA options, so it is not confusing
for them, and everything is self-explanatory.⌉⌊In the user profile, users only have
a few 2FA options, so it is not confusing for them, and everything is self-explanatory
.⌉[

In the user profile, users only have a few 2FA options, so it is not confusing for
them, and everything is self-explanatory.

## FAQ

### Does the plugin send any data to Melapress?

No, the plugin does not send any data to us whatsoever. The only data we receive
is license data from the premium edition of the plugin.

### What 2FA methods are available with the plugin?

The free edition of WP 2FA includes the following 2FA methods: Authenticator app
2FA and code over email. This allows you to use Google Authenticator OTP The premium
edition adds YubiKey, one-click email link, SMS 2FA, and Authy push notifications.

### How can I integrate two-factor authentication (2FA) into my custom login process or AJAX-based form?

WP 2FA includes a REST API that allows developers to enable and verify 2FA during
custom authentication flows, such as AJAX-based login forms, mobile apps, or headless
WordPress websites. Refer to the [REST API in WP 2FA documentation](https://melapress.com/support/kb/wp-2fa-rest-api/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
for more information.

### How can I ensure I do not get locked out?

WP 2FA includes backup authentication methods so that if the primary authentication
method fails, you and your users can still log in. The free version of the plugin
includes backup codes, which can be configured during 2FA configuration or at any
point after that from the profile page. The premium edition adds 2FA backup codes
over email.

### What happens if I get locked out?

In the unlikely event that you are unable to supply your 2FA code, there are several
steps you can take to gain access to your WordPress dashboard. First, check if there
is another administrator who can reset your 2FA. If this is not possible, manually
deactivate the plugin, log in without 2FA, re-activate the plugin, and then reconfigure
your 2FA.

### Does WP 2FA support multi-site networks?

Yes, WP 2FA is multisite compatible. The plugin can be activated at the network 
level. 2FA policies can be enforced on all users, a subsection of users, or per 
site on the network. It also supports network setups with different domains.

### Does the plugin receive updates?

We update the plugin fairly regularly to ensure the plugin continues to run in tip-
top shape while adding new features from time to time.

### Does the plugin support Google Authenticator?

Yes, WP 2FA fully supports Google Authenticator on WordPress. [WP 2FA also supports many other 2FA authenticator apps](https://melapress.com/support/kb/wp-2fa-configuring-2fa-apps/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa).

### Can I get support if I get stuck?

Support for the free edition of the plugin is provided only via the WordPress.org
support forums. You can also refer to our [support pages](https://melapress.com/support/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=wp2fa)
for all the technical and product documentation.

If you are using the Premium edition, you get direct access to our support team 
via one-to-one [email support](https://melapress.com/support/submit-ticket/?utm_source=wp+repo&utm_medium=repo+link&utm_campaign=wordpress_org&utm_content=mls).

### How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program.
Please use this [form](https://patchstack.com/database/vdp/wp-2fa). For more details,
please refer to our [Melapress plugins security program](https://melapress.com/plugins-security-program/).

## Reviews

![](https://secure.gravatar.com/avatar/e2a6ce429bd60b11a33f7d22b9f5f62f4d5f716895ad694f1e377262fc1449c9?
s=60&d=retro&r=g)

### 󠀁[Locked me out during initial setup](https://wordpress.org/support/topic/locked-me-out-during-initial-setup/)󠁿

 [sloppysmusic](https://profiles.wordpress.org/sloppysmusic/) 22. oktobra 2026 3
replies

Waste of an hour of my time. Installed, went through wizard chose via email otp 
ALL users instant no delay setup. At end it asked me to set up my admin 2fa.. I 
whitelisted address, then pressed I'm ready. Spinning logo then NOTHING. same screen.
Tried 3 times then exited. Except now Im locked out of my dashboard until I press
the ready button on a form that does NOTHING. Straight to cpanel – find that plugin
INSTANT DELETE. Fixed issue I can access MY site again. YES I did search for this
issue before deleting found nothing. Why is there zero documentation for when the
most important of all 2fa functions (the actual setting up) fails completely BEFORE
an email is even sent? Took a screenshot but no insert image here and not wasting
time sharing it on my site. EDIT:Fluent SMTP found 3 failed sent emails. smpt host
issue. But your dialog should have some way of detecting a failed SEND attempt so
user can then roll back and UNDO 2fa settings so can then diagnose issue without
being locked out/needing brute force delete approach.

![](https://secure.gravatar.com/avatar/6838089f8d2c75dcdfab4a87730d8437f15c7ef799718b905d3e79b2601f43aa?
s=60&d=retro&r=g)

### 󠀁[Good app; great support](https://wordpress.org/support/topic/good-app-great-support-4/)󠁿

 [alanpaterson997](https://profiles.wordpress.org/alanpaterson997/) 15. oktobra 
2026 1 reply

Had some issues after a migration – entirely self-inflicted, I might add. The help
in sorting it was quick, friendly, helpful and limitless. A dozen+ interactions 
over a few days: always excellent. Highly recommended.

![](https://secure.gravatar.com/avatar/a7288183188f59aa88866038ba38cdfc760f096d8708de1d3fd1ec5ace38177d?
s=60&d=retro&r=g)

### 󠀁[Great bug fix support, support several type of 2FA,Enforce 2FA to user](https://wordpress.org/support/topic/i-recommend-this-wp-2fa-plugin-support-several-type-of-2faenforce-2fa-to-user/)󠁿

 [genepine](https://profiles.wordpress.org/genepine/) 13. oktobra 2026 1 reply

I recommend this WP 2FA plugin, my favorite point are support several type of 2FA
method and PASSKEY, Enforce 2FA to user that cannot unlock by user. このWordPress
用2FAプラグインをおすすめします。特に気に入っている点は、多様な2FA方式やパスキー（
Passkey）に対応していること、そしてユーザー自身では無効化できない形で2FAを強制できる
ことです。

![](https://secure.gravatar.com/avatar/67902cce9ea6496a47fc1892ca287759bfa08bad637f711a5738c17ee15663a7?
s=60&d=retro&r=g)

### 󠀁[Nice and easy 🙂](https://wordpress.org/support/topic/nice-and-easy-455/)󠁿

 [josegallo](https://profiles.wordpress.org/josegallo/) 8. oktobra 2026 1 reply

Nice and easy 🙂 no more to say, thanks

![](https://secure.gravatar.com/avatar/1b07554370fb4b1d514417815fd3a2e7529d046f9676719a9aebcf16070b3e0b?
s=60&d=retro&r=g)

### 󠀁[Very prompt and helpful support](https://wordpress.org/support/topic/very-prompt-and-helpful-support-3/)󠁿

 [J](https://profiles.wordpress.org/sbwdblog8/) 5. oktobra 2026 1 reply

The plugin has always worked for me, but when I had a slight issue I emailed support
and they immediately got back to me and were able to identify what I'd done wrong.

![](https://secure.gravatar.com/avatar/405ad1c6e0346b6e383eb4c9fab47582193f6eeb45d32c4e6a7e71df47d6126e?
s=60&d=retro&r=g)

### 󠀁[broke the backend. endless popups](https://wordpress.org/support/topic/broke-the-backend-endless-popups/)󠁿

 [dnavdb](https://profiles.wordpress.org/dnavdb/) 28. septembra 2026 3 replies

broke the backend. had to remove it.

 [ Read all 184 reviews ](https://wordpress.org/support/plugin/wp-2fa/reviews/)

## Sobustatkujuce a wuwijarje

„WP 2FA – Two-factor authentication for WordPress“ jo software wótwórjonego žrědła.
Slědujuce luźe su pśinosowali k toś tomu tykacoju.

Sobustatkujuce

 *   [ Melapress ](https://profiles.wordpress.org/melapress/)
 *   [ robertabela ](https://profiles.wordpress.org/robert681/)

“WP 2FA – Two-factor authentication for WordPress” has been translated into 16 locales.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wp-2fa/contributors)
for their contributions.

[Translate “WP 2FA – Two-factor authentication for WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-2fa)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-2fa/), check out
the [SVN repository](https://plugins.svn.wordpress.org/wp-2fa/), or subscribe to
the [development log](https://plugins.trac.wordpress.org/log/wp-2fa/) by [RSS](https://plugins.trac.wordpress.org/log/wp-2fa/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.2.1 (2026-10-14)

 * **Functionality & plugin improvements** *
    - Updated the Freemius SDK to version 2.13.5.
    - Added a link to the Wordfence Login Security migration guide in the wizard
      and migrator page.
    - Improved the Wordfence migration completion notice to confirm that all users‘
      2FA configurations and backup codes have migrated and that Wordfence Login
      Security can be uninstalled. Made the notice more visible and removed the 
      OK button.
 * **Bug fixes** *
    - Fixed saving the setting that allows or blocks custom email addresses for 
      HOTP, OOB methods. The additional settings panel now stays open when the toggle
      is turned off, until changes are saved.
    - Fixed an invisible WP 2FA submenu item under Dashboard that linked to a 404
      page after updating to version 4.2.0.

## Meta

 *  Version **4.2.1**
 *  Last updated **2 tyźenja**
 *  Active installations **100.000+**
 *  WordPress version ** 5.7 abo nowša **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.4 abo nowša **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/wp-2fa/), [English (US)](https://wordpress.org/plugins/wp-2fa/),
   [Finnish](https://fi.wordpress.org/plugins/wp-2fa/), [Galician](https://gl.wordpress.org/plugins/wp-2fa/),
   [German](https://de.wordpress.org/plugins/wp-2fa/), [Greek](https://el.wordpress.org/plugins/wp-2fa/),
   [Japanese](https://ja.wordpress.org/plugins/wp-2fa/), [Polish](https://pl.wordpress.org/plugins/wp-2fa/),
   [Romanian](https://ro.wordpress.org/plugins/wp-2fa/), [Russian](https://ru.wordpress.org/plugins/wp-2fa/),
   [Serbian](https://sr.wordpress.org/plugins/wp-2fa/), [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-2fa/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/wp-2fa/), [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/wp-2fa/),
   [Spanish (Spain)](https://es.wordpress.org/plugins/wp-2fa/), [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wp-2fa/)
   a [Swedish](https://sv.wordpress.org/plugins/wp-2fa/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wp-2fa)
 * Tags
 * [2-factor authentication](https://dsb.wordpress.org/plugins/tags/2-factor-authentication/)
   [2FA](https://dsb.wordpress.org/plugins/tags/2fa/)[google authenticator](https://dsb.wordpress.org/plugins/tags/google-authenticator/)
   [two factor authentication](https://dsb.wordpress.org/plugins/tags/two-factor-authentication/)
   [WordPress authentication](https://dsb.wordpress.org/plugins/tags/wordpress-authentication/)
 *  [Rozšyrjony naglěd](https://dsb.wordpress.org/plugins/wp-2fa/advanced/)

## Pógódnośenja

 4.7 out of 5 stars.

 *  [  165 5-star reviews     ](https://wordpress.org/support/plugin/wp-2fa/reviews/?filter=5)
 *  [  3 4-star reviews     ](https://wordpress.org/support/plugin/wp-2fa/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/wp-2fa/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/wp-2fa/reviews/?filter=2)
 *  [  13 1-star reviews     ](https://wordpress.org/support/plugin/wp-2fa/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-2fa/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-2fa/reviews/)

## Sobustatkujuce

 *   [ Melapress ](https://profiles.wordpress.org/melapress/)
 *   [ robertabela ](https://profiles.wordpress.org/robert681/)

## Pódpěra

Rozwězane problemy zajźoneju dweju mjasecowu:

     8 z 13

 [Forum pomocy pokazaś](https://wordpress.org/support/plugin/wp-2fa/)