mc_draw_upcoming_event - joedolson/my-calendar GitHub Wiki
Draw a custom template for upcoming events. Returning any non-empty string short circuits other template settings.
Auto-generated Example
add_filter(
'mc_draw_upcoming_event',
function(
string $item,
array $details,
string $template,
array $args
) {
// Your code here.
return $item;
},
10,
4
);
Parameters
string$itemEmpty string before event template is drawn.array$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 upcoming events.
Returns
string Event template details.
Files
apply_filters( 'mc_draw_upcoming_event', $item, $details, $args['template'], $args )
apply_filters( 'mc_draw_upcoming_event', '', $details, $template, $type )