WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
3174 | * in a way that is independent of {@see 'feed_links_show_comments_feed'} |
3175 | * (which controls the global comments feed). The result of that filter |
3176 | * is accepted as a parameter. |
3177 | * |
3178 | * @since 6.1.0 |
3179 | * |
3180 | * @param bool $show_comments_feed Whether to display the post comments feed link. Defaults to |
3181 | * the {@see 'feed_links_show_comments_feed'} filter result. |
3182 | */ |
3183 | $show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed ); |
3184 |
|
3185 | if ( $show_post_comments_feed && ( comments_open() || pings_open() || $post->comment_count > 0 ) ) { |
3186 | $title = sprintf( |
3187 | $args['singletitle'], |
3188 | get_bloginfo( 'name' ), |
3189 | $args['separator'], |
3190 | the_title_attribute( array( 'echo' => false ) ) |
3191 | ); |
3192 |
|