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
133     $the_list = '';
134     foreach ($categories as $category) {
135         $category->cat_name = convert_chars($category->cat_name);
136         if ('rdf' == $type) {
137             $the_list .= "\n\t<dc:subject>$category->cat_name</dc:subject>";
138         } else {
139             $the_list .= "\n\t<category>$category->cat_name</category>";
140         }
141     }
142     echo apply_filters('the_category_rss', $the_list, $type);
143 }
144
145 function rss_enclosure() {
146      global $id, $post;
147      if (!empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password)) return;
148
149      $custom_fields = get_post_custom();
150      if( is_array( $custom_fields ) ) {
151           while( list( $key, $val ) = each( $custom_fields ) ) {