Uma área de pesquisa sobre o WordPress para devs e autores do tema



comment_notification_notify_author ›

Desde3.8.0
Obsoleton/a
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
Parâmetros: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Required: Yes
  • (int) $comment_id The comment ID.
    Required: Yes
Definido em:
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.





Fonte

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