Support » Plugin: Paid Memberships Pro » Paid Membership Pro with BuddyPress

Viewing 13 replies - 1 through 13 (of 13 total)
  • By not working I mean that it is still accessible to non-members.

    Please see the note above in your post – you need to use a pastebin for posting that much code.

    Here’s the link:

    Thanks by the way, Mr. WPyogi.

    Plugin Author Jason Coleman


    What specifically is still available? Do you understand how the pasted code works? Did you tweak it to work with your membership levels and URLs?

    This is something we typically help people with in our paid support forums:


    For example, if someone tries to sign up but fails to pay, they still have a user account. For the most part, they’re blocked from locked posts and pages, but the buddypress activity is still accessible to them. As users, they can also send messages and add friends to other users. This is something I don’t want to be accessible to anyone who has an account, but paid members.

    I tweaked it a little bit. And I felt like I understood what I was doing, but it wasn’t still working. I uncommented the function calls and added the specific membership ids. I also took out the function to block forums because I don’t actually have a forum with my BuddyPress.

    Here’s the link to the tweaked version:

    Plugin Author Jason Coleman


    Line 8 there is what determines which pages (URLs really) aren’t accessible. Make sure that your URL structure matches those lines and that you add anything in there you need.

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

    We can help you work this out if you sign up for support on our site.

    Hi Uchenna101,

    I’m going to resolve this ticket. As Jason said, if you’d like to sign up for support, you may do so here:

    Thank You

    Can I ask, what file did you put this code in to hide buddypress features and pages from non-memberships?

    I would like to restrict users who do not have memberships from accessing the groups, activity and other pages. But allow the forums to membership levels ID=1 to ID=infinity

    Is it also possible to link the wordpress and buddypress profile fields to PMPro?


    you can use paid membership pro with buddypress using this simple plug in

    Hi akent64,

    did you manage to paste the correct code?
    If yes, may I ask to send me a copy of this code?

    Thank you very much in advance!!!




    You might want to try something called BP Registration Options. I haven’t had to use it for people who haven’t paid (yet), and I use another membership plugin at the moment, but the whole idea is that someone who signs up as a free user has to be moderated by the administrator. So, when you see that they have registered as free members, and thus have failed to pay, they still won’t be able to gain access to the Buddypress area. This plugin prevents them from doing so, and you can choose not to accept them, AND deny them instead. That deletes their profile. I don’t know about its compatibility with Paid Memberships Pro, but it’s worth a try!

    Hope this helps.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Paid Membership Pro with BuddyPress’ is closed to new replies.