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



comment_notification_notify_author › Hooks de Filtros WordPress

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