Prevent members with the Administrator role from being redirected to a new homepage when using the Member Homepages Add On
About the Recipe
Using the Member Homepages Add On for Paid Memberships Pro allows you to completely redirect logged in members to a home page of your choice based on their membership level.
This code recipe will prevent Administrators with a membership level from being redirected to the new homepage. This can be useful at times when a website admin needs to get access to the ‘public/non-member’ homepage.
This recipe will only work if our Member Homepages Add On is installed and activated on your website.
The Code Recipe
Copy and paste this code recipe into a helper PMPro Customizations plugin.
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.