search_form_args WordPress Filter Hook

The search_form_args hook is used to modify the arguments used in the search form. This can be used to change the search form template or to add custom search fields.

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.


Top ↑

Source

File: wp-includes/general-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More