Display 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 ‘get_search_form’.
This function is primarily used by themes which want to hardcode the search form into the sidebar and also by the search widget in WordPress.
(array) (Optional) Array of display arguments.
(bool) Whether to echo or return the form. Default true.
(string) ARIA label for the search form. Useful to distinguish multiple search forms on the same page and improve accessibility.
Default value: array()
(void|string) Void if 'echo' argument is true, search form HTML if 'echo' is false.
|5.2.0||The $args array parameter was added in place of an $echo boolean flag.|