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.


Top ↑

Source

File: wp-includes/class-wp-query.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More