Filter: ep_formatted_args_query

apply_filters( 'ep_formatted_args_query', $query, $query_vars, $search_text, $search_fields ) → {array}

Filter formatted Elasticsearch query for posts.

This filter exists to keep backwards-compatibility. Newer implementations should use ep_post_formatted_args_query.

Parameters:
Name Type Description
$query array

Current query

$query_vars array

Query variables

$search_text string

Search text

$search_fields array

Search fields

Since:
  • 3.5.5 $search_text and $search_fields parameters added.
Source:
Returns:

New query

Type
array