Our Custom Post Type Membership Access Add On protects CPTs for members only and redirects non-members away from the content. This article will show you how to remove the redirect from a protected CPT using the Custom Post Type Membership Access Add On. This will, in turn, allow non-members to view the single CPT page.

Remove Redirect from a Protected CPT

About the Recipe

This recipe will not redirect a non-member away from a protected CPT’s single view. Note that PMPro is designed to only filter members-only content displayed via the WordPress the_content() function. If your CPT displays custom information outside of this function, you may need to do more to hide members-only content from the viewer.


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.

Featured Image for Membership Site Development Course: The Basics
Was this article helpful?
YesNo