-
Notifications
You must be signed in to change notification settings - Fork 16
mc_upcoming_events_template
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Pass a custom template to the upcoming events list. Template can either be a template key referencing a stored template or a template pattern using {} template tags.
add_filter(
'mc_upcoming_events_template',
function( string $template ) {
// Your code here.
return $template;
}
);-
string$templateUn-parsed template.
string Template string.
apply_filters( 'mc_upcoming_events_template', $args['template'] )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )