Ready to get started?Download WordPress


Paid Memberships Pro
Restricted Content (2 posts)

  1. briangadbois
    Posted 2 years ago #

    I am testing Paid Membership Pro on a new site that uses a theme which adds custom fields to the post content. When a non-member views the post, only the text is being restricted, graphics and links are still appearing. Is there anyway to configure PMP to restrict the entire post?


  2. strangerstudios
    Plugin Author

    Posted 2 years ago #

    Hi, Brian. This isn't built into the plugin, but is possible with some added code in your themes functions.php (or a companion plugin).

    There is some code for our support members here:

    I can give you the gist of it:
    * Hook into WP's template_redirect hook
    * use the pmpro_hasMembershipLevel() function to check if the user is a member
    * be sure to also exclude certain "okay" pages (homepage, levels page, checkout)
    * use the wp_redirect() function to redirect to the checkout page or wherever you want non-members to go

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic