-
Notifications
You must be signed in to change notification settings - Fork 16
mc_event_today
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter the array of events listed in today's events lists.
add_filter(
'mc_event_today',
function(
array,
array $events
) {
// Your code here.
return array;
},
10,
2
);-
array$todays_events A multidimensional array of event items with today's date as a key with an array of formatted HTML on event templates on the current date. Other variable names:$todays_events -
array$eventsArray of events without private events removed. Values are event objects.
array A multidimensional array of event items with today's date as a key with an array of formatted HTML on event templates on the current date.
apply_filters( 'mc_event_today', $todays_events, $events )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 )