search_form_args filter-hook . WP 5.2.0
Filters the array of arguments used when generating the search form.
Usage
add_filter( 'search_form_args', 'filter_function_name_714' ); function filter_function_name_714( $args ){ // filter... return $args; }
- $args(array)
- The array of arguments for building the search form.
Changelog
Since 5.2.0 | Introduced. |
Where the hook is called
wp-includes/general-template.php 282
$args = apply_filters( 'search_form_args', $args );