wpseek.com
A WordPress-centric search engine for devs and theme authors



notify_post_author › WordPress Filter Hooks

Since7.1.0
Deprecatedn/a
apply_filters( 'notify_post_author', $maybe_notify, $comment_id )
Parameters: (2)
  • () maybe_notify Whether to notify the post author about the new comment.
    Required: Yes
  • () comment_id The ID of the comment for the notification.
    Required: Yes
Defined at:
Codex:

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.





Source

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