Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_category_rss

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
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') {
184      echo get_the_category_rss($type);
185 }
186
187 function get_tag_feed_link($tag_id, $feed = 'rss2') {
188      $tag_id = (int) $tag_id;