- This topic has 1 reply, 2 voices, and was last updated 4 years, 9 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Not logged in user redirected automatically
Tagged: #redirect #automaically
Good Morning.
I would like to know if there is a way to automatically redirect a user who tries to access protected content to the login page without displaying the protected content message.
for example:
if the user is not logged in.
when trying to access a post from the list it is automatically redirected to the login page.
Hi, you can check the following documentation which redirects non logged in users.
https://simple-membership-plugin.com/auto-redirect-non-logged-in-users-protect-whole-site/
Also check the following documentation and pay attention to the following header Check Current User’s Post Access Permission then Redirect User.
https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/
Let me know if the information above helps you.
Thank you.