Hooks in widgets?

Home Forums Calendar Products Events Calendar PRO Hooks in widgets?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #96525
    Andy Fragen
    Moderator

    I see from the change log that you’ve added my request for hooks in widgets but I don’t see them in the files. Can you let me know the hook format and where it’s located? Thanks.

    #97226
    Barry
    Member

    Hi Andy,

    Thanks again for those suggestions – based on which we added tribe_events_before_list_widget and tribe_events_after_list_widget actions (in the context of the list widget of course) and you can see the code for those in TribeEventsListWidget::widget_output().

    For some others we felt existing hooks were sufficient, such as tribe_before_get_template_part and tribe_after_get_template_part within tribe_get_template_part() for adding elements before or after the mini calendar widget, for instance (you can detect that the calendar widget is being used by accepting a $template parameter in your callbacks).

    Does that clarify things?

    #97326
    Andy Fragen
    Moderator

    Hey Barry,

    Yes, that helps a lot. I wasn’t sure where to look for the hooks. I think they’ll work great and I’m implementing them in Category Colors now.

    Only missing part at the moment is category class tags in the Venue widget, consider another feature request.

    #134812
    Barry
    Member

    We’re doing a little housekeeping and I’m going to go ahead and close this thread as it’s fairly old at this point!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hooks in widgets?’ is closed to new replies.