Support » Plugin: Passster - Password Protection » Integration

  • Resolved alicewuertz

    (@alicewuertz)


    Hey there,

    how to I integrate the plugin, to prottect a certain page with a password?

    When I insert the shortcode on my site, the plugin is shown on top of the page, but the page itself (which sould be protected) is seen anyway.

    kind regards & and thanks for your help
    Alice

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @alicewuertz,

    normally that’s not the case Passster was created for.
    You can do this anyway when you use it inside a template (page template for example) like this:

    if ( true === passster\PS_Conditional::is_password_valid( '123' ) ) {
         the_content();
     }

    This is great!
    I know you’re not intending this use. But…

    Any way you can set the placeholder with this method?
    instead of getting [PASSSTER_PASSWORD]

    Right now I’m using a little jQuery to swap it.
    $('#passster_password').attr("placeholder", "Enter Password").focus().blur();

    Thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Integration’ is closed to new replies.