-
Notifications
You must be signed in to change notification settings - Fork 16
mc_todays_events_before
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Modify the HTML preceding each list item in a list of today's events.
add_filter(
'mc_todays_events_before',
function(
string $item,
string $classes,
string $category
) {
// Your code here.
return $item;
},
10,
3
);-
string$itemHTML string before each event. -
string$classesSpace separated list of classes for this event. -
string$categoryCategory argument passed to this list.
string HTML preceding each event in today's events lists.
apply_filters( 'mc_todays_events_before', "<li class='$classes'>", $classes, $args['category'] )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 )