Hi Team.
I’m running SiteOrigin Page Builder on my site alongside Paid Membership Pro. However, PMPro isn’t allowing to see the blog entries because it is not filtering the non – members content properly.
According to PMPro, the issue resides with the priority level of the filtering. Here’s what they say:
“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.
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.”
I have tried to find the filter level but I cannot fin it. There is a code by PMPro that resets the filtering to a different level but it does not seem to work.
Where can I find that information in the SiteOrigin Builder to modify it?
Thanks in advance for your help!
Hi Juan
Thanks for reaching out. Please, see our reply here Thread: What priority does the Page Builder filter the_content on? PMPro conflict. Does that help? Please, let us know how it goes.
Hi Andrew.
Thank you very much for your help. I am glad that I can continue SiteOrigin in my websites because it is great!
I can confirm that adding this code works perfectly well. In case it happens to other users, I just created a snippet, add the code, activate and “voila”!.
/*
Tell PMPro to filter the_content a bit later.
This will sometimes fix issues where theme or plugin elements (e.g. videos)
are not being filtered by PMPro. Note that this sometimes will cause
some things (e.g. share links) to be filtered that you don’t want to be
filtered… and sometimes edits to the theme or a child theme are
required to get the desired effect.
Add this to your active theme’s fucntions.php or a custom plugin.
*/
function my_init_change_pmpro_content_filter_priority()
{
remove_filter(‘the_content’, ‘pmpro_membership_content_filter’, 5);
add_filter(‘the_content’, ‘pmpro_membership_content_filter’, 15);
}
add_action(‘init’, ‘my_init_change_pmpro_content_filter_priority’);
Super, I’m really glad to hear that helped. All the best with your site. If any questions arise in the future, please, let us know
Cheers for now.