Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_search_query

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
1009     </script>
1010     <?php
1011 }
1012
1013 function get_search_query() {
1014      return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) );
1015 }
1016
1017 function the_search_query() {
1018      echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) );
1019 }
1020
1021 function language_attributes($doctype = 'html') {
1022      $attributes = array();
1023      $output = '';
1024
1025      if ( $dir = get_bloginfo('text_direction') )
1026           $attributes[] = "dir=\"$dir\"";
1027