-
Notifications
You must be signed in to change notification settings - Fork 16
mc_custom_template
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Filter My Calendar view output. Returning any content will shortcircuit drawing event output.
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
);-
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.
string
apply_filters( 'mc_custom_template', false, $tags, $event, $type, $process_date, $time, $template )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )