Filter: ep_search_suggestion_analyzer

apply_filters( 'ep_search_suggestion_analyzer', $search_analyzer, $formatted_args, $args, $wp_query ) → {array}

Filter the search analyzer use for the did you mean feature.

Parameters:
Name Type Description
$search_analyzer array

Search analyzer

$formatted_args array

Formatted Elasticsearch query

$args array

WP_Query arguments

$wp_query WP_Query

WP_Query object

Since:
  • 4.6.0
Source:
Returns:

New search analyzer

Type
array