apply_filters( ‘notify_post_author’, bool $maybe_notify, int $comment_id )

In this article

Filters whether to send the post author new comment notification emails, overriding the site setting.

Parameters

$maybe_notifybool
Whether to notify the post author about the new comment.
$comment_idint
The ID of the comment for the notification.

Source

$maybe_notify = apply_filters( 'notify_post_author', $maybe_notify, $comment_id );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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