Version 2.3+ of Paid Memberships Pro now allows non-members to access the Membership Account page. We made this decision to allow non-member access so that past members could view their invoice history and easily renew their last level or view your Membership Levels page and compare all current options.
The code recipe below removes this feature and will redirect all users without a current membership level away from this page.
The Code Recipe
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
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.