1. Home
  2. Docs
  3. Passster
  4. Page Protection

Page Protection

New since version 3.3 is the full page protection. It’s not only for pages to be exact, it can also used for posts, products and pretty much every other custom post type you can think of.

Page Protection 1

It blocks the entire content of your page without the page title.

How to use Page Protection

Unlike the shortcode you just need to fill out a bit of details in a metabox which you should see when you edit a page. Due to the fact that some users prefer the new Gutenberg editor and others are using the old WYSIWYG-editor it made screenshots of both:


Page Protection 2

Classic Editor

Page Protection 3


The first option you need to use if you want to protect the entire page is to tick on the “Activate protection” toggle.

In the next step you choose your protection mode. You will see that the field below will variate depending on the settings you make.

Password has a password entry field, passwords with a comma-separated list, password lists has a select menu to choose from your created lists, captcha and ReCaptcha does not have any fields to fill out.

Page Protection 4

Add Custom Post Types

Sometimes your website uses more than the provided three custom post types (page, post, product) if you want to use the protection for any other custom post types you can use the following snippet in your functions.php and add a list of all your custom post types:

add_filter( 'passster_post_types', function( $post_types ){
$post_types[] = 'books';
$post_types[] = 'partner';
$post_types[] = 'cars';
return $post_types;