Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide expired Paid Memberships Pro members from Buddypress members list


  • pewpew41
    Participant

    @pewpew41

    Hi all,

    I’m setting up Buddypress’ Member Directory with Paid Memberships Pro and am wondering if there is a way to exclude expired/cancelled Paid Memberships Pro members from Buddypress’ Member Directory?

Viewing 3 replies - 1 through 3 (of 3 total)

  • pewpew41
    Participant

    @pewpew41

    Please close this thread, I have worked this out myself.


    shaguftashamid6
    Participant

    @shaguftashamid6

    To hide expired Paid Memberships Pro (PMP) members from the Buddypress members list, you can utilize custom code by adding a filter to modify the read query that retrieves the members. Here’s a general outline of the steps you can follow:

    Create a child theme: If you haven’t already, create a child theme for your Buddypress-enabled WordPress website of . This allows you to add custom code without modifying the parent theme files directly.

    Locate the functions.php file: In your child theme, locate the functions.php file. If it doesn’t exist, create a new one.


    pewpew41
    Participant

    @pewpew41

    Thanks for the reply. Your link appears to be something unrelated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar