apply_filters( 'search_form_args', array $args )

Filters the array of arguments used when generating the 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 bool
    Whether to echo or return the form. Default true.
  • aria_label string
    ARIA label for the search form. Useful to distinguish multiple search forms on the same page and improve accessibility.

Top ↑

Source

File: wp-includes/general-template.php. View all references

$args = apply_filters( 'search_form_args', $args );


Top ↑

Changelog

Changelog
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.