Redirect Non-members from the Membership Account page

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.

This content requires a premium membership plan.