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: https://pastebin.com/ZnxcVywG