钩子文档

comment_author_rss

💡 云策文档标注

概述

comment_author_rss 是一个 WordPress 过滤器钩子,用于在 RSS 或 Atom 等 feed 中过滤当前评论作者名称。它基于 get_comment_author() 函数,允许开发者修改评论作者在 feed 中的显示内容。

关键要点

  • 这是一个过滤器钩子,用于修改 feed 中的评论作者名称。
  • 参数为 $comment_author(字符串类型),表示当前评论作者。
  • 相关函数包括 get_comment_author_rss(),用于在 feed 中检索评论作者。
  • 自 WordPress 1.5.0 版本引入。

📄 原文内容

Filters the current comment author for use in a feed.

Description

See also

Parameters

$comment_authorstring
The current comment author.

Source

return apply_filters( 'comment_author_rss', get_comment_author() );

Changelog

Version Description
1.5.0 Introduced.