wp_search_stopwords WordPress Filter Hook
The wp_search_stopwords hook is used to add or remove stopwords from the WordPress search. This hook is used by the built-in search functionality to improve search results.
apply_filters( 'wp_search_stopwords', string[] $stopwords ) #
Filters stopwords used when parsing search terms.
Parameters
- $stopwords
(string[])Array of stopwords.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |