WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_get_search_form

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/general-template.php do_action 252 /**
* 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.
*/

Hook Parameters

Parameter Type Name Description
array $args The array of arguments for building the search form.