comment_email

FILTER wp-includes\comment-template.php (ligne 203) github
Filters the comment author's email for display. Care should be taken to protect the email address and assure that email harvesters do not capture your commenter's email address.

Paramètres

Entrée :
$comment->comment_author_email, $comment
Sortie :
@param string     $comment_author_email The comment author's email address.
@param WP_Comment $comment              The comment object.

Utilisation

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

function ma_fonction_filtre($comment->comment_author_email) {
    // Modifier la valeur
    return $comment->comment_author_email;
}

Actualités

Chargement des actualités...