• Resolved vmallder

    (@vmallder)


    Hello,

    I have registered for the action hook ‘tribe_events_single_event_before_the_content’ and noticed that it is being called twice each time a page is loaded. Do you have any idea why this would happen? It is being called once for the $post->ID of the event being displayed, as expected. And it is called again with the $post->ID of the “next” event, which is not expected. This is causing a huge problem for me. Even though this plugin is free, I have purchased the PRO version. I am posting here because this is the forum for the plugin where the code is located.

    My action function is being called from line 55 of plugins\the-events-calendar\views\single-event.php

    Thanks very much
    Valerie

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Barry

    (@barryhughes-1)

    Hi Valerie,

    You are more than welcome to post in the PRO forum about core plugin issues.

    Is it possible what you are describing though is actually taking place over two distinct HTTP requests? That is, the action in question runs once only during the request for the requested single event. Then, independently (but in close succession) a second HTTP request occurs for the next event in sequence?

    Or do you actually mean you are finding this event fires twice in the same request (if so, can you also describe the actual problem this is causing you to help us get a better handle on it)?

    Thanks!

    Plugin Contributor leahkoerper

    (@leahkoerper)

    It’s been a month, so in accordance with our forum guidelines I’m shutting this thread. Thanks for your support!
    ~Leah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘before content action hook called multiple times.’ is closed to new replies.