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.