pre_get_search_form

pre_get_search_form

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('pre_get_search_form') is found 1 times:

  • /wp-includes/general-template.php line 252
    	 *
    	 * @param array $args The array of arguments for building the search form.
    	 *                    See get_search_form() for information on accepted arguments.
    	 */
    	do_action( 'pre_get_search_form', $args );
    
    	$echo = true;
    
    	if ( ! is_array( $args ) ) {
    		/*
    		 * Back compat: to ensure previous uses of get_search_form() continue to