search_form

Search-related functions

Summary

search_form(array $options = Array)

Return the site-wide search form.

Parameters:
  • $options (array) – Valid options are as follows: - show_advanced (bool): whether to show the advanced search; default is false. - submit_value (string): the value of the submit button; default “Submit”. - form_attributes (array): an array containing form tag attributes.
Returns:

string The search form markup.

Usage

Examples

See Also