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



comment_notification_notify_author › WordPress Filter Hooks

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
  • (string) $comment_id The comment ID as a numeric string.
    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 );