Home>Support>apply_filters the_content interferes with Easy Forms for Mailchimp

apply_filters the_content interferes with Easy Forms for Mailchimp

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 again!

The update to version 6.0.2.4 of Easy Forms for Mailchimp includes processing shortcodes in the description for a form, using apply_filters(‘the_content’, …). This leads to a recursion in PageBuilder.

I saw a few more threads about interference around this filter. I’m quite new to WordPress code development, but had a look into the siteorigin_panels_filter_content() function. From what is appears to do, I was wondering if the main work in that function shouldn’t be hooked into ‘the_post’, instead of using a global reference to $post and possibly replacing existing content within this function hooked to ‘the_content’?

https://codex.wordpress.org/Plugin_API/Action_Reference/the_post

Thanks!

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More