search_form_args filter-hookWP 5.2.0

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

Usage

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(array)
The array of arguments for building the search form. See get_search_form() for information on accepted arguments.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.