WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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 = ''; |