Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_comments_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
264      if ( '' != get_option('permalink_structure') ) {
265           $url = trailingslashit( get_permalink() ) . 'feed';
266           if ( 'rss2' != $feed )
267                $url .= "/$feed";
268           $url = user_trailingslashit($url, 'single_feed');
269      } else {
270           $url = get_option('home') . "/?feed=$feed&p=$id";
271      }
272
273      return apply_filters('post_comments_feed_link', $url);
274 }
275
276 function edit_post_link($link = 'Edit This', $before = '', $after = '') {
277      global $post;
278
279      if ( is_attachment() )
280           return;
281
282      if( $post->post_type == 'page' ) {