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