get_bsearch_form
Filters the HTML output of the search form.
Type: filter
Since: 1.2
Source: includes/general-template.php line 281
Changelog
| Version | Description |
|---|---|
3.0.0 |
The $args parameter was added. |
1.2 |
Introduced. |
Parameters
| Type | Name | Description |
|---|---|---|
string |
$form |
The search form HTML output. |
string |
$search_query |
Search query |
array |
$args |
The array of arguments for building the search form. |
Usage
add_filter( 'get_bsearch_form', function($form, $search_query, $args) {
// ...
return $form;
} );