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

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

Changelog

VersionDescription
3.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.