Setup protected area

Home Forums Pie-Register 2.0 Support Setup protected area

This topic contains 1 reply, has 2 voices, and was last updated by  Hasnain Abbas 2 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4489

    scarlettkwokk
    Participant

    I am using WordPress 4.5 and Pie Register2.0.21. When I create a new page, I can’t find the “Page Restriction” field to block the pages. How can I solve it?

    Thanks

    #4491

    Hasnain Abbas
    Keymaster

    Hello,

    PR free version doesnt have “Page Restrictions” feature to restrict the pages other than Login, Registration Forgot Password and Profile page. But you can easily do it in your theme by creating “Restricted Page” template.

    Here’s how i would do:

    Copy regular page template into a new template and wrap the code in the following condition:

    if(is_user_logged_in()){
    //..Page template code here
    }else{
    auth_redirect();
    }

    I hope it helps, please feel free to let us know if you have any other questions.

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.