the_search_query WordPress Filter Hook
The "the_search_query" hook is a WordPress core hook that is called when a search query is being processed. It is used to modify the search query before it is passed to the search engine.
apply_filters( 'the_search_query', mixed $search ) #
Filters the contents of the search query variable for display.
Parameters
- $search
(mixed)Contents of the search query variable.
Source
Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |