get_search_form WordPress Filter Hook
The get_search_form hook is used to retrieve the HTML code for the search form. This hook can be used in your theme's template files or in a plugin file.
apply_filters( 'get_search_form', string $form , array $args ) #
Filters the HTML output of the search form.
Parameters
- $form
(string)The search form HTML output.
- $args
(array)The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
Source
Changelog
Version | Description |
---|---|
5.5.0 | The $args parameter was added. |
2.7.0 | Introduced. |