mc_event_today - joedolson/my-calendar GitHub Wiki
Filter the array of events listed in today's events lists.
Auto-generated Example
add_filter(
'mc_event_today',
function(
array,
array $events
) {
// Your code here.
return array;
},
10,
2
);
Parameters
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_eventsarray$eventsArray of events without private events removed. Values are event objects.
Returns
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.
Files
apply_filters( 'mc_event_today', $todays_events, $events )