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

In this article

Filters whether to send the post author new comment and note notification emails, overriding the site settings and defaults. By default, notifications are sent for all notes and for approved comments.

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
7.1.0Comment approval status is checked before this filter, and the filter no longer fires for invalid comment IDs.
4.4.0Introduced.

User Contributed Notes

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

Sponsor
SponsoredKunjungi sekarang
Promo