Skip to content

mc_custom_template

github-actions[bot] edited this page May 15, 2026 · 4 revisions

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} $details Output HTML for event. Default boolean false.
  • {array} $tags Event data array passed to template function.
  • {object} $event My Calendar event object.
  • {string} $type View type.
  • {string} $process_date Current date being processed.
  • {string} $time View timeframe.
  • {string} $template Existing template.

Returns

{string}

Files

apply_filters( 'mc_custom_template', false, $tags, $event, $type, $process_date, $time, $template )

← All Hooks

Clone this wiki locally