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
3213            * in a way that is independent of {@see 'feed_links_show_comments_feed'}
3214            * (which controls the global comments feed). The result of that filter
3215            * is accepted as a parameter.
3216            *
3217            * @since 6.1.0
3218            *
3219            * @param bool $show_comments_feed Whether to display the post comments feed link. Defaults to
3220            *                                 the {@see 'feed_links_show_comments_feed'} filter result.
3221            */
3222           $show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed );
3223
3224           if ( $show_post_comments_feed && ( comments_open() || pings_open() || $post->comment_count > 0 ) ) {
3225                $title = sprintf(
3226                     $args['singletitle'],
3227                     get_bloginfo( 'name' ),
3228                     $args['separator'],
3229                     the_title_attribute( array( 'echo' => false ) )
3230                );
3231