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$itemEmpty string before event template is drawn.array$event_detailsAssociative array of event template tags.string$templateTemplate string passed from widget or shortcode.array$argsAssociative 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 )