Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: category_feed_link

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
110        $permalink_structure = get_settings('permalink_structure');
111
112        if ('' == $permalink_structure) {
113                      $link = get_settings('home') . '?feed=rss2&cat=' . $cat_ID;
114        } else {
115                      $link = get_category_link($cat_ID);
116                      $link = $link . "feed/";
117        }
118
119                 $link = apply_filters('category_feed_link', $link);
120
121        if ($echo) echo $link;
122        return $link;
123 }
124
125 function the_category_rss($type = 'rss') {
126     $categories = get_the_category();
127     $the_list = '';
128     foreach ($categories as $category) {