Outil de recherche WordPress pour les développeurs et auteurs de thèmes



comment_notification_notify_author ›

Depuis3.8.0
Dépréciéen/a
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
Paramètres: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Requis: Oui
  • (int) $comment_id The comment ID.
    Requis: Oui
Défini(e) dans:
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 );