The load_ecp_into_page_template method overrides page builder content
-
Hello,
We are having an issue with The Events Calendar plugin overriding the content from our page builder plugin. The issue appears to be that TEC’s Tribe__Events__Templates::load_ecp_into_page_template method is running on the content after our render_content method. Our content is rendering, but it is being replaced by TEC’s page template. Like, TEC’s method, we only want ours to run once, so it isn’t getting called again when TEC’s template hits the_content().
I believe the resolution would be to change the priority of that filter to something sooner than the default (9 appears to be working)…
add_filter( 'the_content', array( __CLASS__, 'load_ecp_into_page_template' ), 9 );
I believe that changing the priority could also lead to some small performance gains as all of the default WP filters (and any added by plugins/themes before TEC’s) are firing twice. Once when the_content originally fires and once when it fires again in TEC’s page template.
Any chance we can make this happen? ??
Thanks!
Justin
- The topic ‘The load_ecp_into_page_template method overrides page builder content’ is closed to new replies.