Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_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
1005         }
1006     }
1007     <?php endif; ?>
1008     // ]]>
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 = '';