feed_links_extra_show_post_comments_feed
Filters whether to display the post comments feed link.
This filter allows to enable or disable the feed link for a singular post in a way that is independent of feed_links_show_comments_feed (which controls the global comments feed). The result of that filter is accepted as a parameter.
Usage
add_filter( 'feed_links_extra_show_post_comments_feed', 'wp_kama_feed_links_extra_show_post_comments_filter' ); /** * Function for `feed_links_extra_show_post_comments_feed` filter-hook. * * @param bool $show_comments_feed Whether to display the post comments feed link. * * @return bool */ function wp_kama_feed_links_extra_show_post_comments_filter( $show_comments_feed ){ // filter... return $show_comments_feed; }
- $show_comments_feed(true|false)
- Whether to display the post comments feed link.
Default: {@see 'feed_links_show_comments_feed'} filter result
Changelog
Since 6.1.0 | Introduced. |
Where the hook is called
feed_links_extra_show_post_comments_feed
wp-includes/general-template.php 3205
$show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed );