author_email

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

author_email。这个过滤器允许开发者修改WordPress中作者的电子邮件地址。这可以用来改变显示在作者身上的电子邮件地址,或者为作者添加额外的电子邮件地址。

过滤显示评论作者的电子邮件。

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

常见问题

FAQs
查看更多 >
闪电侠

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

2026-01-29 13:09:46

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

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

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