Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



comment_notification_notify_author ›

Seit3.8.0
Veraltetn/v
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
Parameter: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Erforderlich: Ja
  • (int) $comment_id The comment ID.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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