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 |
---|---|
21 | * @since 1.5.1 |
22 | * @uses apply_filters() Calls 'get_bloginfo_rss' hook with two parameters. |
23 | * @see get_bloginfo() For the list of possible values to display. |
24 | * |
25 | * @param string $show See get_bloginfo() for possible values. |
26 | * @return string |
27 | */ |
28 | function get_bloginfo_rss($show = '') { |
29 | $info = strip_tags(get_bloginfo($show)); |
30 | return apply_filters('get_bloginfo_rss', convert_chars($info), $show); |
31 | } |
32 |
|
33 | /** |
34 | * Display RSS container for the bloginfo function. |
35 | * |
36 | * You can retrieve anything that you can using the get_bloginfo() function. |
37 | * Everything will be stripped of tags and characters converted, when the values |
38 | * are retrieved for use in the feeds. |
39 | * |
Line | Code |
306 | $cat_names[] = sanitize_term_field('name', $tag->name, $tag->term_id, 'post_tag', $filter); |
307 | } |
308 |
|
309 | $cat_names = array_unique($cat_names); |
310 |
|
311 | foreach ( $cat_names as $cat_name ) { |
312 | if ( 'rdf' == $type ) |
313 | $the_list .= "\t\t<dc:subject><![CDATA[$cat_name]]></dc:subject>\n"; |
314 | elseif ( 'atom' == $type ) |
315 | $the_list .= sprintf( '<category scheme="%1$s" term="%2$s" />', esc_attr( apply_filters( 'get_bloginfo_rss', get_bloginfo( 'url' ) ) ), esc_attr( $cat_name ) ); |
316 | else |
317 | $the_list .= "\t\t<category><![CDATA[" . @html_entity_decode( $cat_name, ENT_COMPAT, get_option('blog_charset') ) . "]]></category>\n"; |
318 | } |
319 |
|
320 | return apply_filters('the_category_rss', $the_list, $type); |
321 | } |
322 |
|
323 | /** |
324 | * Display the post categories in the feed. |