Filter: ep_{$indexable_slug}_search_algorithm

apply_filters( 'ep_{$indexable_slug}_search_algorithm', $search_algorithm, $search_term, $search_fields, $query_vars ) → {string}

Filter the search algorithm to be used

Parameters:
Name Type Description
$search_algorithm string

Slug of the search algorithm used as fallback

$search_term string

Search term

$search_fields array

Fields to be searched

$query_vars array

Query variables

Since:
  • 4.3.0
Source:
Returns:

New search algorithm slug

Type
string

apply_filters( 'ep_{$indexable_slug}_search_algorithm', $search_algorithm, $search_term, $search_fields, $query_vars ) → {string}

Filter the search algorithm to be used

Parameters:
Name Type Description
$search_algorithm string

Slug of the search algorithm used as fallback

$search_term string

Search term

$search_fields array

Fields to be searched

$query_vars array

Query variables

Since:
  • 4.3.0
Source:
Returns:

New search algorithm slug

Type
string