comment_author

过滤钩子
apply_filters( 'comment_author', $author, $comment->comment_ID )
参数
  • (string) $author The comment author's username.
    Required:
  • (string) $comment_ID The comment ID as a numeric string.
    Required:
定义位置
相关勾子
get_comment_authorcomment_author_rsscomment_urlget_comment_author_ipget_comment_author_url
相关方法
comment_authorcomment_author_ipcomment_author_urlget_comment_authorcomment_author_rsscomment_author_link
引入
4.1.0
弃用
-

comment_author – 这个过滤器钩子用于修改显示在评论中的作者名字。评论的ID、作者姓名和评论对象作为参数传递给过滤函数。

过滤显示评论作者的名字。

echo apply_filters( 'comment_author', $author, $comment->comment_ID );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-14 12:36:31

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: