Action hook 'pre_get_search_form'

in WP Core File wp-includes/general-template.php at line 254

Description

Fires before the search form is retrieved, at the start of get_search_form().

Occurrences

Filename Line Number
wp-includes/general-template.php 254

Parameters

Type Name Description
array $args The array of arguments for building the search form. See get_search_form() for information on accepted arguments.

PHP Doc

/**
	 * Fires before the search form is retrieved, at the start of get_search_form().
	 *
	 * @since 2.7.0 as 'get_search_form' action.
	 * @since 3.6.0
	 * @since 5.5.0 The `$args` parameter was added.
	 *
	 * @link https://core.trac.wordpress.org/ticket/19321
	 *
	 * @param array $args The array of arguments for building the search form.
	 *                    See get_search_form() for information on accepted arguments.
	 */