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.
$comment->comment_author_email, $comment
Sortie :
@param string $comment_author_email The comment author's email address. @param WP_Comment $comment The comment object.
// 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;
}
Chargement des actualités...