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



comment_notification_notify_author › WordPress Filter Hooks

Since3.8.0
Deprecatedn/a
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
Parameters: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    Required: Yes
Defined at:
Codex:

Filters whether to notify comment authors of their comments on their own posts.

By default, comment authors aren't notified of their comments on their own posts. This filter allows you to override that.





Source

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