CONTENTS
function mcmca_reverse_past_events( $template_vars ) {
if ( ! empty( $template_vars['is_past'] ) ) {
$template_vars['events'] = array_reverse(
$template_vars['events']
);
}
return $template_vars;
}
add_filter(
'tribe_events_views_v2_view_list_template_vars',
'mcmca_reverse_past_events',
100
);
