Title: wp_search_stopwords
Published: April 25, 2014
Last modified: May 20, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#wp--skip-link--target)

Filters stopwords used when parsing search terms.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#parameters)󠁿

 `$stopwords`string[]

Array of stopwords.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-query.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-query.php#L1615)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-query.php#L1615-L1615)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Query::get_search_stopwords()](https://developer.wordpress.org/reference/classes/wp_query/get_search_stopwords/)`wp-includes/class-wp-query.php` |

Retrieves stopwords used when parsing search terms.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_search_stopwords/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_search_stopwords%2F)
before being able to contribute a note or feedback.