Setup protected area

This topic contains 1 reply, has 2 voices, and was last updated by Avatar Pie Register 3 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10004489
    Avatar
    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

    #10004491
    Avatar
    Pie Register
    Participant

    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)

The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.