wp_query_search_exclusion_prefix WordPress Filter Hook
The wp_query_search_exclusion_prefix Wordpress hook allows you to exclude certain terms from the search results. This can be useful if you want to exclude certain terms from the search results that are not relevant to the search.
apply_filters( 'wp_query_search_exclusion_prefix', string $exclusion_prefix ) #
Filters the prefix that indicates that a search term should be excluded from results.
Parameters
- $exclusion_prefix
(string)The prefix. Default '-'. Returning an empty value disables exclusions.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |