On this page
apply_filters( 'get_search_query', mixed $search )
Filters the contents of the search query variable.
Parameters
$searchmixed-
Contents of the search query variable.
Source
File: wp-includes/general-template.php. View all references
$query = apply_filters( 'get_search_query', get_query_var( 's' ) );
Related
Used By
| Used By | Description |
|---|---|
| get_search_query() wp-includes/general-template.php | Retrieves the contents of the search WordPress query variable. |
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_search_query