apply_filters( ‘comment_email’, string $comment_author_email, WP_Comment $comment )

In this article

Filters the comment author’s email for display.

Description

Care should be taken to protect the email address and assure that email harvesters do not capture your commenter’s email address.

Parameters

$comment_author_emailstring
The comment author’s email address.
$commentWP_Comment
The comment object.

Source

$comment_author_email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );

Changelog

VersionDescription
4.1.0The $comment parameter was added.
1.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.