comment_notification_recipients

FILTER wp-includes\pluggable.php (ligne 1771) github
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.

Paramètres

Entrée :
$emails, $comment->comment_ID
Sortie :
@param string[] $emails     An array of email addresses to receive a comment notification.
@param string   $comment_id The comment ID as a numeric string.

Utilisation

// Modifier la valeur avec le filtre 'comment_notification_recipients'
add_filter('comment_notification_recipients', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($emails) {
    // Modifier la valeur
    return $emails;
}

Actualités

Chargement des actualités...