Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi there,
First of all, thanks for the great plugin!
I’m having an issue on my pages that are built with the Page Builder and that are supposed to be hidden behind my membership wall with Paid Membership Pro.
I tried adding this code and upping the priority to 250 for the PMPro plugin, but to no avail:
Filter Members Only Content Later (for Page Builders and Certain Plugin Conflicts)
Please let me know how I can resolve this issue!
Thanks in advance :)
Hi Sean,
SiteOrigin Page Builder filters the_content at the default filter priority – which is 10. As such, the code you were using should have definitely worked. Can you please send me a copy of the code you tried? Also, does this issue happen when the code you’re using is present and all non-SiteOrigin plugins (excluding PMPro)?
/* 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');here’s the code i used.
Hi Sean,
That code should work. Hm. Where did you add that code?
I would recommend reaching out to PMPro about this also as they may have changed something recently and just not have updated their documentation yet.