comment_text_rss
云策文档标注
概述
comment_text_rss 是一个 WordPress 过滤器钩子,用于在 RSS 或 Atom 等 feed 中过滤当前评论的内容。它允许开发者修改评论内容以适应 feed 格式或添加自定义处理。
关键要点
- 这是一个过滤器钩子,用于处理 feed 中的评论内容。
- 参数为字符串类型的 $comment_text,表示当前评论的内容。
- 在 wp-includes/feed.php 中定义,由 comment_text_rss() 函数使用。
- 自 WordPress 1.5.0 版本引入。
原文内容
Filters the current comment content for use in a feed.
Parameters
$comment_textstring-
The content of the current comment.
Source
$comment_text = apply_filters( 'comment_text_rss', $comment_text );
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |