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 | 14-Day Premium Trial

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 WordPress security & admin plugins such as WPassword, and WP Activity Log, the #1 user-rated activity log plugin for WordPress.

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

WP 2FA Key plugin features & capabilities

Extend the functionality of WP 2FA & automate more

Upgrade to WP 2FA Premium to:

  • 2FA over SMS, Push notification, WhatsApp and incoming call via Authy integration
  • Add trusted devices – no need for 2FA code each time you log in
  • Whitelabel all the 2FA pages – for a consistent user experience
  • Give the users more 2FA methods to choose from and use
  • Configure different 2FA policies for different user profiles
  • More alternative 2FA backup methods
  • Easily get an overview of users’ 2FA setup with the reports
  • And many other features

Refer to the features and benefits page to learn more about the benefits of upgrading to WP 2FA Premium.

Free and Premium Support

Support for WP 2FA is free on the WordPress support forums.

Premium world-class support is available via email to all WP 2FA Premium users.

Note: paid customer support is given priority and is provided via one-to-one email and over the phone. Upgrade to Premium to benefit from priority support.

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

As Featured On:

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.


जानेवारी 25, 2023
I have installed this plugin on many sites. It is easy to setup and configure.
डिसेंबर 31, 2022 2 replies
The plugin may be good but it completely hijacks the WP admin interface. I literally can not open any page in WP admin unless I add 2 factor auth. Not even the plugins page to deactivate. Not sure if this is an annoying feature or a bug but makes the site unsuable.
नोव्हेंबर 24, 2022
In the beginning there were some problems with the implementation. Therefore, I contacted the support. They were able to help me very well. I am glad to use a plugin whose support works so well. I can only recommend the plugin
नोव्हेंबर 19, 2022
There are a few tweaks here and there to maximize its functionality within my website, however, overall, this plugin is simply great.
नोव्हेंबर 19, 2022
Our organization tries to enforce 2FA everywhere we possibly can. This plugin fills that need perfectly, and works very well. The support is great also - the best experience I’ve had attempting to use the Forum on a free plugin.
नोव्हेंबर 3, 2022
The plugin is great and suits my needs had an issue and the customer service got back to me really quickly and was awsome highly recomended for the customer support and ease of use for the plugin.
Read all 88 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 9 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.


2.3.0 (2022-09-06)

Release notes: More white labelling options & better licensing

  • New features

    • Added a new plugin setting so admins can disable the 2FA wizards styling.
  • Improvements

    • Several UI and styling improvements in the plugin’s settings pages.
    • User’s 2FA configuration is removed when user is excluded.
    • Applied improved and responsive styling to the user 2FA wizards.
    • Better out-of-the-box support for websites on which access to wp-login.php & wp-admin is blocked.
    • Super administrators can now log in and use 2FA even if they do not have any role on any sub sites.
    • Added support for websites hosted on Godaddy that also have the Sucuri plugin enabled (Sucuri plugin was breaking the 2FA code page).
    • Better UX for when creating the front-end 2FA page settings.
    • Updated the Freemius SDK to version 2.4.5 to support PHP 8.1.
    • Applied several updates to the “user 2FA status check” code for more reliable status reporting.
    • Applied several maintenance and WP coding standards checks.
    • Plugin bails out early instead of trying to process users with ID 0.
    • Placeholders in plugin settings have been replaced by onces which allow you to see all the content without scrolling.
    • Improved the process that extracts the user role on multisite networks resulting in improvement of how the plugin handles users with multiple roles.
    • Rmoved the words “Google Authenticator” from all the wizards and using “2FA app” instead – plugin supports multiple 2FA apps.
    • Fixed the “focus” in the user 2FA wizard so the cursor is always in the expected location – user does not have to click to select where to enter the verification code.
  • Security Improvement

    • Plugin now uses the WordPress salts to store and encrypt 2FA data in the database.
    • Improved the comparison of authentication codes – ensuring the plugin is not vulnerable to time-based side-channel attacks.
  • Bug fixes

    • Fixed: QR code not loading in user 2FA wizard in some edge cases on a multisite network.
    • Fixed: the setting “Hide Remove 2FA button” was not properly reflecting the status on multisite networks.
    • Fixed: grace period check cron called the wrong settings.
    • Fixed: two emails are sent when a backup code over email is requested.
    • Fixed: incorrect 2FA methods count was showing in the user wizard.

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