search_form_args хук-фильтр . WP 5.2.0
Filters the array of arguments used when generating the search form.
Использование
add_filter( 'search_form_args', 'filter_function_name_8690' ); function filter_function_name_8690( $args ){ // filter... return $args; }
- $args(массив)
- The array of arguments for building the search form.
Список изменений
С версии 5.2.0 | Введена. |
Где вызывается хук
wp-includes/general-template.php 282
$args = apply_filters( 'search_form_args', $args );