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



comment_notification_recipients ›

Desde3.7.0
Obsoleton/a
apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID )
Parâmetros: (2)
  • (array) $emails An array of email addresses to receive a comment notification.
    Required: Yes
  • (int) $comment_id The comment ID.
    Required: Yes
Definido em:
Codex:

Filters the list of email addresses to receive a comment notification.

By default, only post authors are notified of comments. This filter allows others to be added.





Fonte

$emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID );