Filter hook 'search_form_format'

in WP Core File wp-includes/general-template.php at line 304

Description

Filters the HTML format of the search form.

Occurrences

Filename Line Number
wp-includes/general-template.php 304

Parameters

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

PHP Doc

/**
	 * Filters the HTML format of the search form.
	 *
	 * @since 3.6.0
	 * @since 5.5.0 The `$args` parameter was added.
	 *
	 * @param string $format The type of markup to use in the search form.
	 *                       Accepts 'html5', 'xhtml'.
	 * @param array  $args   The array of arguments for building the search form.
	 *                       See get_search_form() for information on accepted arguments.
	 */