apply_filters( 'search_form_format', string $format, array $args )
Filters the HTML format of the search form.
Parameters
- $format
-
(string) The type of markup to use in the search form. Accepts 'html5', 'xhtml'.
- $args
-
(array) The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
More Information
The filter function must return a $format value after it is finished processing or the search form will be empty.
Source
Changelog
Version | Description |
---|---|
5.5.0 | The $args parameter was added. |
3.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/search_form_format