Filter: ep_{$indexable_slug}_match_cross_fields_boost

apply_filters( 'ep_{$indexable_slug}_match_cross_fields_boost', $boost, $search_fields, $query_vars ) → {int}

Filter boost for match cross_fields query

Parameters:
Name Type Description
$boost int

Boost

$search_fields array

Search fields

$query_vars array

Query variables

Since:
  • 4.3.0
Source:
Returns:

New boost

Type
int

apply_filters( 'ep_{$indexable_slug}_match_cross_fields_boost', $boost, $search_fields, $query_vars ) → {int}

Filter boost for post match cross_fields query

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

Parameters:
Name Type Description
$boost int

Boost

$search_fields array

Search fields

$query_vars array

Query variables

Since:
  • 4.0.0
Source:
Returns:

New boost

Type
int