feed_links_extra_show_post_comments_feed

过滤钩子


apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed )
参数
  • (bool)
    $show_comments_feed
    Whether to display the post comments feed link. Defaults to
    the {@see ‘feed_links_show_comments_feed’} filter result.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 3183
引入
6.1.0
弃用

过滤是否显示文章的评论feed链接。

这个过滤器允许以独立于{@see ‘feed_links_show_comments_feed’}(控制全局评论feed)的方式,启用或禁用单个文章的feed链接。该过滤器的结果可以作为一个参数被接受。

$show_post_comments_feed = apply_filters( 'feed_links_extra_show_post_comments_feed', $show_comments_feed );