tribe_events_before_html()

Home Forums Calendar Products Events Calendar PRO tribe_events_before_html()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #79026
    Nathan Baldwin
    Participant

    I wish to add some additional wrapper code around the tribe-events-before-html div. I was planning to use the tribe_events_before_html filter, but see that you call that filter twice in method referenced by this ticket. The result is that my wrapper gets applied twice.

    I am attempting to generate output like the following (I have used ‘/’ instead of carets:

    /div id=’tribe-events’/
    /div class=’my class’/
    /div class=’tribe-events-before-html’/
    Is this a bug? Or is there a reason this filter is called twice? Should I be using a different filter?

    #79128
    Barry
    Member

    Hi nathanbaldwin:

    Is this a bug? Or is there a reason this filter is called twice?

    I can’t think of any reason and suspect it is an oversight – I’ll log this as being in need of attention. In the interim, you could either remove your filter from within the callback (so the wrapper is applied once only) or else set up a static variable within your callback and detect if the change has already been made, or some similar approach.

    Does that help (at least until we get a substantive fix out there)?

    #982690
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘tribe_events_before_html()’ is closed to new replies.