mc_custom_template - joedolson/my-calendar GitHub Wiki
Filter My Calendar view output. Returning any content will shortcircuit drawing event output.
Auto-generated Example
add_filter(
'mc_custom_template',
function(
string|bool $details,
array $tags,
object $event,
string $type,
string $process_date,
string $time,
string $template
) {
// Your code here.
return $details;
},
10,
7
);
Parameters
string|bool$detailsOutput HTML for event. Default boolean false.array$tagsEvent data array passed to template function.object$eventMy Calendar event object.string$typeView type.string$process_dateCurrent date being processed.string$timeView timeframe.string$templateExisting template.
Returns
string
Files
apply_filters( 'mc_custom_template', false, $tags, $event, $type, $process_date, $time, $template )