wphooks.info - pre_get_search_form

pre_get_search_form

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/general-template.php:
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
 */
function get_search_form( $echo = true ) {
	/**
	 * 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
	 *
	 * @link https://core.trac.wordpress.org/ticket/19321
	 */
	do_action( 'pre_get_search_form' );

	$format = current_theme_supports( 'html5', 'search-form' ) ? 'html5' : 'xhtml';

	/**
	 * Filters the HTML format of the search form.
	 *
	 * @since 3.6.0
	 *
	 * @param string $format The type of markup to use in the search form.