WordPress开发者和主题制作者的搜索引擎



comment_notification_notify_author ›

Since3.8.0
已弃用n/a
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
参数: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Required: Yes
  • (int) $comment_id The comment ID.
    Required: Yes
定义在:
文档:

Filters whether to notify comment authors of their comments on their own posts.

By default, comment authors aren't notified of their comments on their own posts. This filter allows you to override that.





源码

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