-
Notifications
You must be signed in to change notification settings - Fork 16
mc_draw_upcoming_event
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Draw a custom template for upcoming events. Returning any non-empty string short circuits other template settings.
add_filter(
'mc_draw_upcoming_event',
function(
string $item,
array $details,
string $template,
array $args
) {
// Your code here.
return $item;
},
10,
4
);-
string$itemEmpty string before event template is drawn. -
array$detailsAssociative array of event template tags. -
string$templateTemplate string passed from widget or shortcode. -
array$argsAssociative array holding the arguments used to generate this list of upcoming events.
string Event template details.
apply_filters( 'mc_draw_upcoming_event', $item, $details, $args['template'], $args )apply_filters( 'mc_draw_upcoming_event', '', $details, $template, $type )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 )