comment_notification_notify_author

过滤钩子
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
参数
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Required:
  • (string) $comment_id The comment ID as a numeric string.
    Required:
定义位置
相关勾子
comment_notification_textcomment_notification_headerscomment_notification_subjectcomment_notification_recipientscomment_moderation_text
相关方法
wp_new_comment_notify_postauthorcomment_authorwpmu_welcome_notificationwp_new_comment_notify_moderatorcomment_author_ipget_comments_pagination_arrow
引入
3.8.0
弃用
-

comment_notification_notify_author: 这个过滤钩子允许开发者控制评论作者是否应该得到新评论的通知。

筛选是否通知评论作者其对自己文章的评论。

默认情况下,评论作者不会被通知他们在自己文章上的评论。此筛选器允许您覆盖该筛选器<

$notify_author = apply_filters( ‘comment_notification_notify_author’, false, $comment->comment_ID );

常见问题

FAQs
查看更多 >
闪电侠

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

2026-01-29 14:09:47

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

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

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