Our plugin filters your members-only content using WordPress’ the_content template tag. Occasionally, certain themes and plugin elements also filter on this template tag, which can result in improper/unexpected members-only content filtering.

The code recipe below can help resolve this by running the PMPro filter later.

Banner for General Troubleshooting Guide for Paid Memberships Pro

Default Content Filter Priority

By default, we run our filter on the_content at priority “5”. So, if you are able to locate where your plugin/theme/page builder is filtering the_content, you’ll know how much you need to increase the priority of the pmpro_membership_content_filter.

Note: Live Composer filters on the 101 priority, so you must increase your priority to a higher value than 101.

The Code Recipe: Filter Member Content at Priority 15

Special Notes About Content Filters

Increasing the priority of the filter will sometimes cause certain elements (e.g. “share” links) to be filtered that you don’t want to be filtered. In this case, edits to your theme, child theme, or filters on the third-party plugins used are required to get the desired effect. Reach out to our support team for help with filters and theme or plugin conflicts.

Running the PMPro Shortcodes Later

We’ve also run into themes and plugins that run special formatting filters on the the_content hook which can interfere with how PMPro generates its HTML and JavaScript code on pages.

This can affect the shortcodes used for frontend pages such as the Membership Checkout page, Membership Billing page, Membership Cancel page, and others.

The gist below can be used to force WordPress to process PMPro’s shortcodes later on, after any other formatting filters are already run.

Again, the priority of how these functions are fired may need to be tweaked to achieve the desired effect. We can help in the member forums.

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.

As a premium member get hands-on support via our Member Support Area.

Read more about: WordPress Filters and Paid Memberships Pro Filters

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