Hide page for logged in Users
I wanna do the following:
If a user is logged out, he can view the page id=10, if a user is logged in and view page id=10 he will be redirected to page id=5.
I tried some codes in my theme’s header, but nothing worked. Is there any solution (theme modification in header.php or functions.php – I don’t want to use a plugin for this!) for this on?
- The topic ‘Hide page for logged in Users’ is closed to new replies.