Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



comment_notification_notify_author ›

Od3.8.0
Przestarzałyn/a
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
Parametry: (2)
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Wymagane: Tak
  • (int) $comment_id The comment ID.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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