Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Turn On Two-Factor Authentication for WordPress Admin

Add a second step to the WordPress login so a stolen password is not enough.

WordPress2 min read10 steps7 screenshots

What 2FA is

Two-factor authentication (2FA) asks for something more than your password. Common methods:

  1. Authenticator apps. Apps such as Google Authenticator make a new code every 30 seconds.
  2. SMS codes. A code is sent to your phone.
  3. Security keys. A physical USB key that you plug in.
  4. Email codes. A code is sent to your email.

Choose a plugin

  • WP 2FA
  • Two-Factor Authentication (miniOrange)
  • Google Authenticator

The steps below use WP 2FA. Other plugins are similar.

Install and set it up

  1. Go to Plugins, then Add New. Search for the plugin, click Install Now and then Activate.
    Installing a 2FA plugin
  2. A setup wizard opens, or go to Settings, then the plugin page. Choose the methods you allow.
    The 2FA settings
    The available 2FA methods
  3. For an authenticator app:
    - Install an app such as Google Authenticator on your phone.
    - Scan the QR code that the plugin shows.
    - The app starts to make time-based codes (TOTP).
    Scanning the QR code
  4. Choose which user roles must use 2FA. Start with administrators and editors.
    Choosing the users
  5. Open your own profile and finish the 2FA setup for your account. Enter the code from the app to confirm.
    Setting up 2FA for a user
  6. Save the backup codes in a safe place.

Test it

Log out, then log in again. After your password, WordPress asks for the code. Enter the code from your app.

The verification code screen

Why use it

  • It greatly lowers the risk of a break-in, even if a password leaks.
  • It protects your content and your visitors' data.
  • It shows that you care about security.

Good to know

  • Keep the backup codes. They let you in if you lose your phone.
  • You can set different rules for different roles.
  • 2FA is not enough alone. Use strong, unique passwords and keep WordPress, themes and plugins updated.
  • Back up your site on a regular basis.

Quick recap

  • Install a 2FA plugin and choose a method.
  • Scan the QR code with an authenticator app.
  • Save the backup codes and test the login.