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