Paid Memberships Pro
Locking BuddyPress with PMPRO (2 posts)

  1. Uchenna101
    Posted 2 years ago #

    Okay, so I've asked this question before, but I really wanted to give it another shot.

    I am trying to add BuddyPress to my site and lock it with Paid Membership Pro. I found a github code to do that by Paid Membership Pro, but I am having a hard time customizing it for my site.

    Would it be okay to explain just a few things I am trying to get about the snippet?

    For example, Does $membership_id represent the membership level?

    I tried to change this code to fit with my url, but it's still not working.

    $not_allowed = array("/^\/members\/$/", "/^\/activity\/$/""/^\/groups\/$/", "/\/groups\/create\//", "/\/members\/[^\/]*\/groups\//", "/\/members\/[^\/]*\/settings\//");
    foreach($not_allowed as $check)

    Is this the only portion of the snippet that needs to be changed? Thank you.


  2. Jason Coleman
    Plugin Author

    Posted 2 years ago #

    We can help you with this on the paid support forums if you sign up at http://www.paidmembershipspro.com. If you post your levels and ids and the pages you want locked down along with your full code (via pastebin or gist.github.com/etc) we can take a look and give you more direction.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Paid Memberships Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic