search_form_args
Filters the array of arguments used when generating the search form.
Usage
add_filter( 'search_form_args', 'wp_kama_search_form_args_filter' ); /** * Function for `search_form_args` filter-hook. * * @param array $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments. * * @return array */ function wp_kama_search_form_args_filter( $args ){ // filter... return $args; }
- $args(array)
- The array of arguments for building the search form. See get_search_form() for information on accepted arguments.
Changelog
Since 5.2.0 | Introduced. |
Where the hook is called
wp-includes/general-template.php 286
$args = apply_filters( 'search_form_args', $args );