wpseek.com
A WordPress-centric search engine for devs and theme authors



search_form_format › WordPress Filter Hooks

Since5.5.0
Deprecatedn/a
apply_filters( 'search_form_format', $format, $args )
Parameters: (2)
  • (string) $format The type of markup to use in the search form. Accepts 'html5', 'xhtml'.
    Required: Yes
  • (array) $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
    Required: Yes
Defined at:
Codex:

Filters the HTML format of the search form.





Source

$format = apply_filters( 'search_form_format', $format, $args );