get_search_query filter-hook . WP 2.3.0
Filters the contents of the search query variable.
Usage
add_filter( 'get_search_query', 'filter_function_name_379' ); function filter_function_name_379( $search ){ // filter... return $search; }
- $search(mixed)
- Contents of the search query variable.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
get_search_query
wp-includes/general-template.php 4029
$query = apply_filters( 'get_search_query', get_query_var( 's' ) );