BuddyDev

Search

Hide user from directory when membership inactive

  • Participant
    Level: Initiated
    Posts: 12
    Michael Cary on #42425

    Is there a way to automatically hide users from the BuddyPress members directory when the member has no active memberships in MemberPress?

  • Keymaster
    (BuddyDev Team)
    Posts: 22176
    Brajesh Singh on #42432

    Hi Michael,
    Thank you for the question.

    If MemberPress allows you to add some role only for active subscription, you may use and adapt the code snippet from this post.

    https://buddydev.com/hiding-users-on-buddypress-based-site/

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 12
    Michael Cary on #42435

    I actually am running the BuddyPress Profile Visibility Manager plugin, do you have an example of the SQL for that plugin and where to put it, to filter out specific roles?

  • Keymaster
    (BuddyDev Team)
    Posts: 22176
    Brajesh Singh on #42436

    Hi Michael,
    Thank you.

    The code referenced in the above post will work with Profile Visibility Manager too.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved