---
title: "How to Use WP 2FA for WordPress"
description: "WP 2FA was created by Melapress to provide two-factor authentication for your WordPress site. Two-factor authentication (2FA) increases website login security by keeping intruders from accessing a..."
url: https://www.inmotionhosting.com/support/edu/wordpress/plugins/wp-2fa/
date: 2022-12-30
modified: 2024-12-23
author: "InMotion Hosting Contributor"
categories: ["WordPress Plugins"]
type: post
lang: en
---

# How to Use WP 2FA for WordPress

![How to use WP 2FA for WordPress - header image](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wp-2fa-1024x538.jpg)

WP 2FA was created by [Melapress](https://melapress.com/) to provide two-factor authentication for your WordPress site. Two-factor authentication (2FA) increases website login security by keeping intruders from accessing a site through weak or compromised passwords. 

WP 2FA includes options for authentication, WordPress user/role policies, and redirects. The plugin was designed to allow you to immediately implement 2FA to your WordPress site using a step-by-step wizard. 

This tutorial will guide you through the setup process and explain the options for 2FA in the plugin.

- [Using WP 2FA – Video](#video-WP-2FA)
- [Setting Up Two-Factor Authentication with the Wizard](#wizard)
- [Setup Up Two-Factor Authentication without the Wizard](#no-wizard)
- [WP 2FA Plugin Options](#options)

## Using WP 2FA – Video

![How to Use WP 2FA for WordPress](https://i.ytimg.com/vi_webp/guyjH5Y8K0Q/maxresdefault.webp)

## Setting Up Two-Factor Authentication with the Wizard

The installation of the [WP 2FA plugin for WordPress](https://wordpress.org/plugins/wp-2fa/) can be done through the WordPress Administrator Plugins page or the WordPress.org Plugins directory.  The steps below require that you are logged into the WordPress Administrator Dashboard.

NOTE: If you intend to enable two-factor authentication immediately after installing the plugin, you must have an authenticator application or email address that you can use for verification. The wizard for the 2FA setup will immediately appear after the plugin is installed and activated.

1. Click on **Plugins.**
2. Click on **Add New**.
3. Search for **WP 2FA by Melapress**. 
4. Click on the **Install Now** button.
5. When the installation is complete, click on **Activate**.

When you activate the plugin, you will immediately see the wizard start.  This will allow you to immediately enable 2FA for your site and create a policy that applies to your users. The policy defines who needs to use 2FA and how it will be authenticated.

1. Click on “**Let’s get started!**”![Start of WP 2FA wizard](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-1.jpg)
2. Next, choose the authentication options that your users can use.  The app version typically runs on a mobile device like a smartphone or tablet.  For example, [**Google Authenticator**](https://googleauthenticator.net/) is a commonly used authentication app.![WP 2FA - Wizard page 2](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-2.jpg)
3. Determine who will be required to use 2FA.![WP 2FA wizard page 3](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-3.jpg)
4. If you had chosen to enforce only specific users or roles, then you will need to specify the users and/or roles required to use 2FA.![WP 2FA wizard page 4](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-3a.jpg)
5. Specify any users or roles that would be excluded from using 2FA.![WP 2fa wizard page 5](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-4.jpg)
6. You can set a grace period to allow people to set up 2FA.  If you do not set a grace period, then they will be required to set it up when they log in.![WP 2FA page 6](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-5.jpg)
7. The overall 2FA policy has been set in the previous six steps.  The next part is configuring 2FA for your user account (the person setting up the plugin). Click on **Configure 2FA now**.![WP 2FA wizard page 7](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-finish.jpg)
8. Choose how you will authenticate when using the 2FA – Authenticator app or email. This tutorial will be using the authenticator app.  Click on **NEXT STEP**.![Select 2FA authentication](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-finish-2fa-method.jpg)
9. With your Authentication app, scan the QR code displayed on the screen or type in the code. ![Use Authenticator to verify](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-finish-setting-up.jpg)
10.   When your authenticator app has created your account, click on **I’M READY**.
11. Type in the code displayed in the authenticator app, then click on **VALIDATE & SAVE**.![Enter authentication code](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-finish-enter-code.jpg)
12. 2FA is now active for your WordPress user!  You can generate and download the backup codes or choose to do it later.![Generate backup codes](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wizard-finish-backup-codes.jpg)

## Setting Up Two-Factor Authentication without the Wizard

Creating the policy and activating 2FA for your administrator user without the wizard requires that you go to each option on the settings page yourself.  When you set up 2FA for your user, you must go to your user profile to enable it.

**Creating a 2FA Policy**

1. In the WordPress Administrator Dashboard, click on **WP 2FA**.
2. Click on **Settings**.![WP 2FA Settings page](https://www.inmotionhosting.com/support/wp-content/uploads/2022/12/wp-2fa-settings-page.jpg)
3. Choose the 2FA authentication method – application or email (or both). The option to use email also includes an option to let the user choose the email to use.
4. Click on the checkbox to enable Backup codes. Uncheck it to remove the option.
5. Determine who will be required to use 2FA.
6. Determine who will be excluded from the requirement to use 2FA.
7. Determine the grace period for users to set up 2FA.  You can also choose not to have one and make users configure 2FA when they log in.
8. Scroll to the bottom of the settings page and click on the **Save Changes** button.

## WP 2FA Plugin Options

The WP 2FA plugin includes a few options that affect the use and management of 2FA for your users.  

**Redirect**

This option allows you to redirect your users to a specific web page after successfully completing the 2FA setup wizard. Here you can add further information or a message that you want to share with your users.

**Access to the WordPress User Profile Page**

This option is useful when you have custom profile pages or do not permit users to access the WordPress dashboard.  When enabled, the plugin automatically creates a page that only authenticated users can access.  This page is used to configure their 2FA settings. This link is made available to users in an email sent when 2FA is enabled.

**Hide the Disable 2FA Button on the User Profile Page**

This option allows you to hide the option to Remove 2FA on the User Profile page. If you hide the button, then the user cannot disable 2FA.

---

The [WP 2FA plugin](https://wordpress.org/plugins/wp-2fa/) is a simple and easy plugin that allows you to enable two-factor authentication for your WordPress site.  If you need a quick way to implement 2FA, then this plugin provides the options you need.

Other 2FA Plugins:

- [Using Wordfence Login Security for 2FA](https://www.inmotionhosting.com/support/edu/wordpress/plugins/wordfence-2fa/)
- [Two Factor Authentication WordPress Plugin](https://www.inmotionhosting.com/support/edu/wordpress/plugins/two-factor-authentication-plugin/)
- [miniOrange’s Google Authenticator – WordPress Two-Factor Authentication](https://www.inmotionhosting.com/support/edu/wordpress/plugins/miniorange-2-factor-authentication-plugin-for-wordpress/)
- Comparing the plugins: [Best Two-Factor Authentication Plugins for WordPress](https://www.inmotionhosting.com/blog/best-two-factor-authentication-wordpress-plugins/)
