Filters the contents of the search query variable.
$searchmixed
$query = apply_filters( 'get_search_query', get_query_var( 's' ) );
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_search_query