How to restricted not logged in users only to few pages?
I need to restrict access of not logged in users to few pages:
So basically not logged in users will be redirected to Landingpage, except they are loggining in, registering, activating or recovering password.
I tried wp_redirect with is_page conditioning in child theme function.php. But I’m very new to php. And even I used codes people say working for them. I wasn’t successfull.
Could you advise on how to implement such a thing?
- The topic ‘How to restricted not logged in users only to few pages?’ is closed to new replies.