Restrict not logged users from accessing BP members content

Home Forums Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme Compatible Plugins BuddyPress Restrict not logged users from accessing BP members content

This topic contains 1 reply, has 2 voices, and was last updated by  Olivier 9 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #8688

    Gilles Deron
    • 66 Posts

    Hello dear Gwangi Stars,

    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?


    • 1802 Posts
    Themosaurus Support

    Hi @gillesderon,

    Given the needs of your website, it seems best to use Paid Memberships Pro ( 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:

    BuddyPress Integration

    To know precisely which features will be restricted from your BuddyPress website, it’s best if you ask directly to the plugin authors.

    They will be more informed and better suited to help you:


    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.


Hi there,

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.