When you guys filter the content (e.g. using the theme’s default page template or any of the root theme templates as opposed to The Events Calendar’s default or overrides in /events/), the before and after HTML output is NOT filtered.
See /lib/tribe-templates.class.php, lines 117-119:
echo stripslashes(tribe_get_option(‘tribeEventsBeforeHTML’));
include TribeEventsTemplates::get_current_page_template();
echo stripslashes(tribe_get_option(‘tribeEventsAfterHTML’));
Changing to this makes everything so, so nice and clean when writing my hooks/filters:
echo apply_filters( ‘tribe_events_before_html’, stripslashes(tribe_get_option(‘tribeEventsBeforeHTML’)) );
include TribeEventsTemplates::get_current_page_template();
echo apply_filters( ‘tribe_events_after_html’, stripslashes(tribe_get_option(‘tribeEventsAfterHTML’)) );
Can this get ported to an update? ;]