get_comment_author

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

get_comment_author: 这个函数检索给定评论的作者姓名: 该函数接受一个参数,即评论ID,并返回一个代表作者姓名的字符串。

过滤返回的注释作者名称。

return apply_filters( 'get_comment_author', $author, $comment_ID, $comment );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 17:32:57

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

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

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