This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

What priority does the Page Builder filter the_content on? PMPro conflict

8 years ago · Last reply by Alex S 8 years ago

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 :)

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Alex S Staff 8 years, 2 months ago

    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)?

  2. Sean Seale 8 years, 2 months ago
    /*
    	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.

  3. Alex S Staff 8 years, 2 months ago

    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.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread