Skip to content

mc_search_template

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

Template for outputting search results. Default <strong>{date}</strong> {title} {details}.

Auto-generated Example

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

Parameters

  • string $template String with HTML and template tags.
  • string|array $term The search query arguments. Can be a string or an array of search parameters.

Returns

string

Files

apply_filters( 'mc_search_template', $template_pre_filter, $term )

← All Hooks

Clone this wiki locally