Fires before the search form is retrieved, at the start of get_search_form() .
Parameters
$args
array- The array of arguments for building the search form.
See get_search_form() for information on accepted arguments.More Arguments from get_search_form( … $args )
Array of display arguments.
echo
boolWhether to echo or return the form. Default true.aria_label
stringARIA label for the search form. Useful to distinguish multiple search forms on the same page and improve accessibility.
Source
do_action( 'pre_get_search_form', $args );
User Contributed Notes
You must log in before being able to contribute a note or feedback.