I know this topic has already been treated here:
I am using the last code snippet you gave. And it’s working, when a guest try to reach a member’s profile, he’s redirected to signing page. That’s great.
But a guest can reach the directory, the swap or the search pages.
What can I add to the previous code snippet to prevent a guest access those pages?
Given the needs of your website, it seems best to use Paid Memberships Pro (https://www.paidmembershipspro.com/) instead of a snippet. This plugin allows you to charge users, implement recurring payments and restrict content or areas of your website that will only be displayed to premium members. Plenty of PMPro add-ons are available on the author website to go further if necessary, including one for BuddyPress restrictions:
I’m sorry to inform you that we don’t provide any snippet anymore as it’s part of website customizations. So, you shouldn’t expect other snippets from us unless it’s to fix an issue stemming from our own codebase. We always try our best to help theme users whenever we can and only provide code snippets out of courtesy to prevent them from waiting for the next update.
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards, The Themosaurus team.
Viewing 2 posts - 1 through 2 (of 2 total)
The topic ‘Restrict not logged users from accessing BP members content’ is closed to new replies.
Troubleshooting Demo Imports
You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.