notify_moderator

过滤钩子
apply_filters( 'notify_moderator', $maybe_notify, $comment_id )
参数
  • (bool) $maybe_notify Whether to notify blog moderator.
    Required:
  • (int) $comment_ID The id of the comment for the notification.
    Required:
定义位置
相关勾子
notify_post_authorcomment_moderation_headersthe_modified_authorcomment_moderation_textthe_generator
相关方法
wp_notify_moderatorwp_new_comment_notify_moderatorwp_notify_postauthorthe_modified_authorthe_generatortimer_stop
引入
4.4.0
弃用
-

notify_moderator是一个WordPress的动作钩子,当一个评论被保留下来进行审核时就会被触发。该钩子以评论ID为参数被调用,可以用来在评论被保留审核时向网站的版主发送电子邮件通知。

过滤是否发送站点主持人电子邮件通知,覆盖站点设置。

$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-15 02:36:46

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

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

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