Skip to content

mc_post_template

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

Filter post template when event post is generated.

Auto-generated Example

add_filter(
   'mc_post_template',
    function(
        {string} $template,
        {array} $terms
    ) {
        // Your code here.
        return $template;
    },
    10,
    2
);

Parameters

  • {string} $template Template keyword or structure.
  • {array} $terms Terms attached to this event.

Returns

{string}

Files

apply_filters( 'mc_post_template', 'details', $terms )
apply_filters( 'mc_post_template', 'details', $terms )

← All Hooks

Clone this wiki locally