get_search_query хук-фильтр . WP 2.3.0
Filters the contents of the search query variable.
Использование
add_filter( 'get_search_query', 'filter_function_name_6462' ); function filter_function_name_6462( $search ){ // filter... return $search; }
- $search(смешанный)
- Contents of the search query variable.
Список изменений
С версии 2.3.0 | Введена. |
Где вызывается хук
get_search_query
wp-includes/general-template.php 4029
$query = apply_filters( 'get_search_query', get_query_var( 's' ) );