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
992     </script>
993     <?php
994 }
995
996 function get_search_query() {
997      return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) );
998 }
999
1000 function the_search_query() {
1001      echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) );
1002 }
1003
1004 function language_attributes($doctype = 'html') {
1005      $attributes = array();
1006      $output = '';
1007
1008      if ( $dir = get_bloginfo('text_direction') )
1009           $attributes[] = "dir=\"$dir\"";
1010