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

Requirements:

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

Then enable 2 options as the image above:

  1. The first option will add an additional field into 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:

  • You can change the label of additional field via WordPress Customizer. Simply go to Customize >> Password Protect WordPress Form >> Password Form and scroll to the bottom of this panel.
  • If you want to change the order of these fields, add the code snippet below to Customize >> Additional CSS section. This sample code will show the password field on the top of the password form.
    .ppw-ppf-field-container {
        display: flex;
        flex-flow: column;
    }
    .ppw-pwd-label {
        order: 1;
    }
    .ppw-email-label {
        order: 2;
    }
    .ppw-ppf-field-container input[type="submit"] {
        order: 3;
    }
  • 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.
Lasted updated on May 2, 2020