// Here we hook into our template action - just before the date tag, which is the first item in the container.
add_action(
'tribe_template_after_include:events/v2/widgets/widget-events-list/event/date-tag',
'my_action_add_event_featured_image',
15,
3
);
function my_action_add_event_featured_image( $file, $name, $template ) {
// Get the event for reference - we'll need it.
$event = $template->get('event');
// Here's where we get and display our image.
}
Ga naar de inhoud