W3cubDocs

/WordPress

apply_filters( ‘wp_search_stopwords’, string[] $stopwords )

Filters stopwords used when parsing search terms.

Parameters

$stopwordsstring[]
Array of stopwords.

Source

$this->stopwords = apply_filters( 'wp_search_stopwords', $stopwords );

Changelog

Version Description
3.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_search_stopwords