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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
1 | <?php |
2 |
|
3 | function get_bloginfo_rss($show = '') { |
4 | $info = strip_tags(get_bloginfo($show)); |
5 | return apply_filters('get_bloginfo_rss', convert_chars($info)); |
6 | } |
7 |
|
8 |
|
9 | function bloginfo_rss($show = '') { |
10 | echo apply_filters('bloginfo_rss', get_bloginfo_rss($show)); |
11 | } |
12 |
|
13 | function get_wp_title_rss($sep = '»') { |
14 | $title = wp_title($sep, false); |
Line | Code |
165 | $cat_names[] = sanitize_term_field('name', $tag->name, $tag->term_id, 'post_tag', $filter); |
166 | } |
167 |
|
168 | $cat_names = array_unique($cat_names); |
169 |
|
170 | foreach ( $cat_names as $cat_name ) { |
171 | if ( 'rdf' == $type ) |
172 | $the_list .= "\n\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; |
173 | elseif ( 'atom' == $type ) |
174 | $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', attribute_escape( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), attribute_escape( $cat_name ) ); |
175 | else |
176 | $the_list .= "\n\t\t<category><![CDATA[$cat_name]]></category>\n"; |
177 | } |
178 |
|
179 | return apply_filters('the_category_rss', $the_list, $type); |
180 | } |
181 |
|
182 |
|
183 | function the_category_rss($type = 'rss') { |