• Resolved Justin Busa

    (@justinbusa)


    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

    https://wordpress.org/plugins/the-events-calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I believe the resolution would be to change the priority of that filter to something sooner than the default (9 appears to be working)…

    Hey Justin,

    Just to be 100% clear, were you able to make this priority change and get things working with your plugin once you did so? If so, I’m glad to hear it.

    As for the general feedback on lowering this priority period, it’s something to consider and I’ll pass it along to devs on our team.

    Thank you!
    George

    Thread Starter Justin Busa

    (@justinbusa)

    Hi George,

    Thanks for the follow up!

    Just to be 100% clear, were you able to make this priority change and get things working with your plugin once you did so? If so, I’m glad to hear it.

    Yep! I didn’t do any extensive testing, but everything appeared to work as expected.

    I appreciate you looking into this. Let me know what they decide.

    Justin

    Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi there,

    I wanted to report back to you on the status of this issue. Your report is tracked in our internal system and a fix is on our to-do list, but we were not able to fit it into our upcoming 3.12 release. Please know that the issue is still very much on our radar and we will be working on it for a future release. We appreciate your patience while we work to improve our plugins. Thank you for using The Events Calendar!

    Best,
    Leah
    and The Events Calendar team

    Hey there!

    Just wanted to jump in here and let you know that we released The Events Calendar 4.0.6 last night and it included a fix for this issue. Please check your WordPress updates, or you can also grab the latest copy right here at WordPress.org.

    Thanks for your patience while we worked on this! Please feel free to open a new thread if you continue to experience the same issue or have any other questions that pop up during updating and we’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The load_ecp_into_page_template method overrides page builder content’ is closed to new replies.