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 |
---|---|
949 | </script> |
950 | <?php |
951 | } |
952 |
|
953 | function get_search_query() { |
954 | return apply_filters( 'get_search_query', stripslashes( get_query_var( 's' ) ) ); |
955 | } |
956 |
|
957 | function the_search_query() { |
958 | echo attribute_escape( apply_filters( 'the_search_query', get_search_query() ) ); |
959 | } |
960 |
|
961 | function language_attributes() { |
962 | $output = ''; |
963 | if ( $dir = get_bloginfo('text_direction') ) |
964 | $output = "dir=\"$dir\""; |
965 | if ( $lang = get_bloginfo('language') ) { |
966 | if ( $dir ) $output .= ' '; |
967 | if ( get_option('html_type') == 'text/html' ) |