Glossary Term
get_search_form()
get_search_form() — Displays search form. Will first attempt to locate the searchform.php file in either the child or the parent, then load it. If it doesn’t exist, then the default search form will be displayed. The default search form is HTML, which will be displayed. There is a filter applied to the search form HTML in order to edit or replace it. The filter is {
Inputs: $args (array): Optional. Array of display arguments. Field $echo (bool): Whether to echo or return the form. Default true. Field $aria_label (string): ARIA label for the search form. Useful to distinguish multiple search forms on the same page and improve accessibility. Default empty.
Returns string|void: Search form HTML if ‘echo’ is false, nothing otherwise.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
