WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
Locking BuddyPress with PMPRO (2 posts)

  1. Uchenna101
    Member
    Posted 6 months 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.

    http://wordpress.org/plugins/paid-memberships-pro/

  2. strangerstudios
    Member
    Plugin Author

    Posted 6 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic