Skip to content

mc_past_search_results

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

Number of past results to show. Default 0.

Auto-generated Example

add_filter(
   'mc_past_search_results',
    function(
        int $before,
        string string = null
    ) {
        // Your code here.
        return $before;
    }
);

Parameters

  • int $before Number of past results to display.
  • string string $context 'advanced' for advanced search results. Other variable names: string $context 'basic' for basic search results., $basic, $advanced

Returns

int

Files

apply_filters( 'mc_past_search_results', 0 )
apply_filters( 'mc_past_search_results', 0, 'basic' )
apply_filters( 'mc_past_search_results', 0, 'advanced' )

← All Hooks

Clone this wiki locally