Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: feed_links_show_comments_feed

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
2624      }
2625
2626      /**
2627       * Filters whether to display the comments feed link.
2628       *
2629       * @since 4.4.0
2630       *
2631       * @param bool $show Whether to display the comments feed link. Default true.
2632       */
2633      if ( apply_filters( 'feed_links_show_comments_feed', true ) ) {
2634           echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr( sprintf( $args['comstitle'], get_bloginfo( 'name' ), $args['separator'] ) ) . '" href="' . esc_url( get_feed_link( 'comments_' . get_default_feed() ) ) . "\" />\n";
2635      }
2636 }
2637
2638 /**
2639  * Display the links to the extra feeds such as category feeds.
2640  *
2641  * @since 2.8.0
2642  *