On this page
apply_filters( 'comment_notification_notify_author', bool $notify, string $comment_id )
Filters whether to notify comment authors of their comments on their own posts.
Description
By default, comment authors aren’t notified of their comments on their own posts. This filter allows you to override that.
Parameters
$notifybool-
Whether to notify the post author of their own comment.
Default false. $comment_idstring-
The comment ID as a numeric string.
Source
File: wp-includes/pluggable.php. View all references
$notify_author = apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID );
Related
Used By
| Used By | Description |
|---|---|
| wp_notify_postauthor() wp-includes/pluggable.php | Notifies an author (and/or others) of a comment/trackback/pingback on a post. |
Changelog
| Version | Description |
|---|---|
| 3.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_notification_notify_author