Wordpress 钩子:comment_notification_notify_author
文章目录
过滤是否在自己的帖子中通知评论作者他们的评论。
原型
apply_filters( 'comment_notification_notify_author', bool $notify, int $comment_id )
描述
默认情况下,评论作者不会在自己的帖子上通知他们的评论。此过滤器允许你覆盖它。
参数
$notify
(bool)
是否通知帖子作者自己的评论。默认为false。
$comment_id
(int)
评论ID。
源文件
路径:wp-includes/pluggable.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/comment_notification_notify_author/
文章作者 iBllex
上次更新 2019-02-15