comment_notification_notify_author
apply_filters( ‘comment_notification_notify_author’, bool $notify , int $comment_id )
过滤钩子:过滤是否通知评论作者他们对自己文章的评论。
Filter Hook: Filters whether to notify comment authors of their comments on their own posts.
说明(Description)
默认情况下,不会通知评论作者他们在自己的帖子上的评论。这个过滤器允许你覆盖它。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$notify | (bool) | 是否通知帖子作者自己的评论。默认为false。 |
$comment_id | (int) | 评论ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.8.0 | wp-includes/pluggable.php:1539 | 1 | 0 |
comment_notification_notify_author 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_notification_notify_author/