feed_links_show_comments_feed
云策文档标注
概述
feed_links_show_comments_feed 是一个 WordPress 过滤器,用于控制是否显示评论的 feed 链接。它允许开发者根据条件动态调整链接的显示状态。
关键要点
- 这是一个过滤器,用于控制评论 feed 链接的显示。
- 参数 $show 是一个布尔值,默认为 true,表示显示链接。
- 在 feed_links() 函数中调用,用于生成通用 feed 链接。
- 从 WordPress 4.4.0 版本开始引入。
原文内容
Filters whether to display the comments feed link.
Parameters
$showbool-
Whether to display the comments feed link. Default true.
Source
if ( apply_filters( 'feed_links_show_comments_feed', true ) ) {
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |