search_form_args хук-фильтрWP 5.2.0

Filters the array of arguments used when generating the search form.

Использование

add_filter( 'search_form_args', 'wp_kama_search_form_args_filter' );

/**
 * Function for `search_form_args` filter-hook.
 * 
 * @param array $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
 *
 * @return array
 */
function wp_kama_search_form_args_filter( $args ){

	// filter...
	return $args;
}
$args(массив)
The array of arguments for building the search form. See get_search_form() for information on accepted arguments.

Список изменений

С версии 5.2.0 Введена.

Где вызывается хук

get_search_form()
search_form_args
wp-includes/general-template.php 286
$args = apply_filters( 'search_form_args', $args );

Где используется хук в WordPress

Использование не найдено.