Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: search_form_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
275
276      /**
277       * Filters the array of arguments used when generating the search form.
278       *
279       * @since 5.2.0
280       *
281       * @param array $args The array of arguments for building the search form.
282       *                    See get_search_form() for information on accepted arguments.
283       */
284      $args = apply_filters( 'search_form_args', $args );
285
286      // Ensure that the filtered arguments contain all required default values.
287      $args = array_merge( $defaults, $args );
288
289      $format = current_theme_supports( 'html5', 'search-form' ) ? 'html5' : 'xhtml';
290
291      /**
292       * Filters the HTML format of the search form.
293       *