If your site requires membership approval and includes a Member Directory, this is an important recipe for you. Using this custom code, any members in the pending or denied status will be automatically excluded from display in your directory and will not have a public profile page.
The Code Recipe
Adding the recipe to your website
Copy and paste this code recipe into a helper PMPro Customizations plugin. This recipe requires both the Approval Process for Membership Add On and the Member Directory and Profile Pages Add On.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.