mc_draw_todays_event - joedolson/my-calendar GitHub Wiki

Draw a custom template for today's events. Returning any non-empty string short circuits other template settings.

Auto-generated Example

add_filter(
   'mc_draw_todays_event',
    function(
        string $item,
        array $event_details,
        string $template,
        array $args
    ) {
        // Your code here.
        return $item;
    },
    10,
    4
);

Parameters

  • string $item Empty string before event template is drawn.
  • array $event_details Associative array of event template tags.
  • string $template Template string passed from widget or shortcode.
  • array $args Associative array holding the arguments used to generate this list of events.

Returns

string Event output details.

Files

apply_filters( 'mc_draw_todays_event', '', $event_details, $args['template'], $args )

← All Hooks