• Resolved amineberrima

    (@amineberrima)


    Buddypress restrictions for membership plans don’t work.

    I set a membership plan to “No – Lock access to all of BuddyPress” but when I connect with an account of this plan I can access all the Buddyress features..

    It’s really urgent.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @amineberrima

    I’m sorry to hear about the issue you are facing here, could you test this with selecting specific features to see if this makes a difference at all?

    Please can you provide me with your Site Health Information. To retrieve this information, please navigate to Tools > Site Health > Select the info option at the top of the screen > Copy Information to Clipboard and include this in your next reply.

    I had the same issue. I find that the PMPro plugin doesn’t restrict content when using a theme that loads their content or templates with ajax. It works on content I add to the same page so if I manually added the members directory block to specific page, that block will be restricted, but if it is loaded by ajax, it won’t be.

    I had to add code to the functions.php in a child theme:

    function template_redirect()
    {
        //if not logged in and on a bp page except registration or activation
        if( ! is_user_logged_in() && ! bp_is_blog_page() && ! bp_is_activation_page() && ! bp_is_register_page() ) {
            wp_redirect( home_url( '/access-restricted/' ) );
            exit();
        }
    }
    add_action( 'template_redirect', 'template_redirect' );
    Plugin Author Andrew Lima

    (@andrewza)

    Thanks for sharing this @jwrhodes2008, that’s correct. Paid Memberships Pro heavily relies on the_content filter. Your solution looks great, just be sure to prefix your custom callback to prevent fatal errors.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BuddyPress Restrictions doesn’t work at all’ is closed to new replies.