WordPress at Your Fingertips
filter is not described

search_form_format filter-hook . WP 3.6.0

Filters the HTML format of the search form.


add_filter( 'search_form_format', 'filter_function_name_7199', 10, 2 );
function filter_function_name_7199( $format, $args ){
	// filter...

	return $format;
The type of markup to use in the search form. Accepts 'html5', 'xhtml'.
The array of arguments for building the search form. See get_search_form() for information on accepted arguments.


Since 3.6.0 Introduced.
Since 5.5.0 The $args parameter was added.

Where the hook is called

wp-includes/general-template.php 302
$format = apply_filters( 'search_form_format', $format, $args );

Where in WP core the hook is used WordPress

Usage not found.