-
Notifications
You must be signed in to change notification settings - Fork 16
mc_draw_todays_event
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Draw a custom template for today's events. Returning any non-empty string short circuits other template settings.
add_filter(
'mc_draw_todays_event',
function(
string $item,
array $event_details,
string $template,
array $args
) {
// Your code here.
return $item;
},
10,
4
);-
string$itemEmpty string before event template is drawn. -
array$event_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 events.
string Event output details.
apply_filters( 'mc_draw_todays_event', '', $event_details, $args['template'], $args )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 )