How to Require both Password and Email/Username to Unlock Password Protected WordPress Content

By default, your users only need to enter a password to unlock the protected content. What if you want to enhance the security and require users to provide additional information such as their email/username?

Fortunately, it’s possible with our PPWP Pro and Password Suite extension.

In this article, we will walk you through the process of protecting content with more than just a password.

Requirements:

Once you install and activate our plugins, go to Password Protect WordPress >> Additional Fields tab from your admin dashboard.

Step 1: Enable the “Add Additional Fields under Password Form” option

Step 2: Add at least one field to your password form.

So your users have to input additional information besides their passwords, such as username or email.

Step 3: Enable validation options as you want.

There are 2 available options below:

Validate input according to the password label

If you enable this action, your users have to enter the corresponding password label in the additional field.

In this example, users have to enter the password S-})5rRj and email [email protected] to unlock Post #74.

This option comes in handy when you need to create a different password for each user. So they have to enter their password and the password label which should be set as their email or username.

Please note that you can enable this option for one field only. In other words, when you enable this action in one field, the other fields will be disabled automatically.

Validate input according to the preset label

This option is useful when you want to validate multiple fields at once.

Please keep in mind that this action is shown as long as the required value is not empty.

Related documentation:

PPWP Suite version 1.3.1 and lower

Once you install and activate our plugins, go to Password Protect WordPress >> Additional Fields tab from your admin dashboard.

Then enable 2 options as the image above:

  1. The first option will add an additional field to your password form. So your users have to enter additional information besides their passwords, such as username or email.
  2. The second option requires additional information to be matched with your password label.

In this example, users have to enter the password S-})5rRj and email [email protected] to unlock the Post #74.

A few things are worth noting:

  • The quick access link will bypass this function. That means if users access your content via a quick access link, they will provide neither email/username nor password.
  • While you can add the multiple additional fields, this function will work with the default (first) field only. If you hide this field, our plugin skips the password label validation step. As the result, the content will be shown as soon as your users enter the right password (no matter the label is matched or not).
Lasted updated on December 30, 2020