Skip to content

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.

Auto-generated Example

add_filter(
   'mc_todays_events_before',
    function(
        string $item,
        string $classes,
        string $category
    ) {
        // Your code here.
        return $item;
    },
    10,
    3
);

Parameters

  • string $item HTML string before each event.
  • string $classes Space separated list of classes for this event.
  • string $category Category argument passed to this list.

Returns

string HTML preceding each event in today's events lists.

Files

apply_filters( 'mc_todays_events_before', "<li class='$classes'>", $classes, $args['category'] )

← All Hooks

Clone this wiki locally