Skip to content

mc_use_custom_template

Joe Dolson edited this page May 15, 2026 · 4 revisions

Filter My Calendar view template.

Auto-generated Example

add_filter(
   'mc_use_custom_template',
    function(
        {string} $template,
        {array} $tags,
        {object} $event,
        {string} $type,
        {string} $process_date,
        {string} $time
    ) {
        // Your code here.
        return $template;
    },
    10,
    6
);

Parameters

  • {string} $template HTML with template tags.
  • {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.

Returns

{string} Must have at least five characters or it will be ignored.

Files

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

← All Hooks

Clone this wiki locally