apply_filters( 'relevanssi_phrase_taxonomies', array $taxonomies )

This filter hook filters the taxonomies used for phrase matching.


(array|string) An array of taxonomy names.

More information

When the user does a phrase search (wraps the search terms in quotes), Relevanssi adds in some extra MySQL code to restrict the search to only the posts with that exact phrase. If taxonomies are included in the index, this code will also look at the taxonomies.

This filter hook can modify which taxonomies are included in the phrase matching. If you don’t want the phrase matching to look into taxonomies at all – for example, to increase performance – you can have this filter return an empty array.