Skip to content

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.

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_events
  • array $events Array 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 )

← All Hooks

Clone this wiki locally