Skip to content

mc_upcoming_events_template

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Pass a custom template to the upcoming events list. Template can either be a template key referencing a stored template or a template pattern using {} template tags.

Auto-generated Example

add_filter(
   'mc_upcoming_events_template',
    function( string $template ) {
        // Your code here.
        return $template;
    }
);

Parameters

  • string $template Un-parsed template.

Returns

string Template string.

Files

apply_filters( 'mc_upcoming_events_template', $args['template'] )

← All Hooks

Clone this wiki locally