WP 2FA – Two-factor authentication for WordPress



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

Features | Getting Started | More Info

Use the WP 2FA plugin to enable two-factor authentication for your WordPress administrator user, and to enforce your website users, or some of them to use 2FA. This plugin is very easy to use. It has wizards with clear instructions, so even non technical users can setup 2FA without requiring technical assistance.

Maintained & Supported by WP White Security

WP White Security builds high-quality niche WordPress security & admin plugins such as Password Policy Manager, a plugin with which you can ensure all your users use strong passwords.

Browse our list of WordPress plugins that can help you better manage and improve the security of your WordPress websites and users.

WP 2FA Key plugin features & capabilities

  • Free Two-factor authentication (2FA) for all users
  • Supports TOTP (code from 2FA apps like Google Authenticator and Authy) and OTP (email based codes)
  • Supports 2FA backup codes
  • Very easy to use and wizard driven
  • Use policies to enforce 2FA with a grace period or require your users to instantly setup 2FA upon login
  • Protection against automated password guessing and dictionary attacks

FREE Plugin Support

Support for the WP 2FA plugin is available for free via:

For any other queries, feedback, or if you simply want to get in touch with us please use our contact form.

Related Links and Documentation

From within WordPress

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


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


  • The first-time install wizard allows you to setup 2FA on your website and for your user within seconds.
  • The wizards make setting up 2FA very easy, so even non technical users can setup 2FA without requiring help.
  • 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.
  • You can use policies to require users to instantly set up and use 2FA, so the next time they login they will be prompted with this.
  • 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.
  • The plugin blocks the accounts of users who are required to have 2FA but fail to enable it within the grace period, so they do not jeopardize the security of your website.


Sermawêz 13, 2021
After evaluating four 2FA plugins for WordPress (including premium plugins), I must say this is the best one. It makes 2FA easy to enable for regular users and it follows the same setup and login flow as the “big players” such as Facebook and Twitter. The developer has even hinted on upcoming support for WebAuthn, e.g., Yubikeys (see support topic “support-for-yubikey”), which would take authentication security to the next level. There are some missing features that I would like to see in the future. The lack of these features doesn’t keep me from giving this excellent plugin five stars, since the plugin does exactly what it claims to do. Here are however the improvements I’d like to see. Embed a script for generating QR codes so that no external requests are needed (the plugin currently relies on chart[.]googleapis[.]com). Put the dialog boxes’ content in templates so that they can be overridden without modifying core files (or run the content through a filter). Add a checkbox to the login page so that users can enable “remember this browser” or “do not ask again for 90 days”. Consider adding a premium version so that we who rely on the plugin can fund the development and maintenance.
Sermawêz 17, 2021
two star deducted, because the plug-in cannot be color-adjusted and the translation is inadequate, adjustments using CSS are also very difficult, especially for beginners. Also a lot of conflicts with other plugins and last but not least, ... The wizard popup shouldn't always start immediately with the page load, that's really annoying. Precisely because you cannot switch it off optionally. Otherwise stable operation is possible and the plugin works as it should. Thanks for the work! Cheers!
Cotmeh 13, 2021
Very easy to setup and configure. What attracted me the most was the onboarding process for new users. It's now a low threshold to 'enforce' 2FA for our clients. Highly recommended!
Cotmeh 12, 2021
Support is responsive and knowledgeable. Possible to use custom or third-party frontend login forms. 2FA can be self-configured by users and managed from the frontend, with support for WooCommerce.
Read all 65 reviews

Contributors & Developers

“WP 2FA – Two-factor authentication for WordPress” is open source software. The following people have contributed to this plugin.


“WP 2FA – Two-factor authentication for WordPress” has been translated into 8 locales. Thank you to the translators for their contributions.

Translate “WP 2FA – Two-factor authentication for WordPress” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


1.7.1 (2021-08-11)

  • Bug fixes
    • FIXED: In some scenario accounts were locked out even if the user had 2FA configured.
    • FIXED: Error during cron job execution caused by an empty variable.
    • FIXED: Small PHP8 error within generate_modal function.
    • FIXED: Rendering issue with select box in plugin wizard.
    • FIXED: Users unable to close configuration dialog on mobile screens.

Refer to the complete plugin changelog for more detailed information about what was new, improved and fixed in previous version updates of WP 2FA.