Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: feed_links_extra_show_post_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
3180            * in a way that is independent of {@see 'feed_links_show_comments_feed'}
3181            * (which controls the global comments feed). The result of that filter
3182            * is accepted as a parameter.
3183            *
3184            * @since 6.1.0
3185            *
3186            * @param bool $show_comments_feed Whether to display the post comments feed link. Defaults to
3187            *                                 the {@see 'feed_links_show_comments_feed'} filter result.
3188            */
3189           $show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed );
3190
3191           if ( $show_post_comments_feed && ( comments_open() || pings_open() || $post->comment_count > 0 ) ) {
3192                $title = sprintf(
3193                     $args['singletitle'],
3194                     get_bloginfo( 'name' ),
3195                     $args['separator'],
3196                     the_title_attribute( array( 'echo' => false ) )
3197                );
3198