WordPress at a glance
filter is not described

comment_email filter-hook . WP 1.2.0

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.

Usage

add_filter( 'comment_email', 'filter_function_name_9168', 10, 2 );
function filter_function_name_9168( $comment_author_email, $comment ){
	// filter...

	return $comment_author_email;
}
$comment_author_email(string)
The comment author's email address.
$comment(WP_Comment)
The comment object.

Notes

  • Since 4.1.0 The $comment parameter was added.

Where the hook is called

get_comment_author_email_link()
comment_email
WP_Comments_List_Table::column_author()
comment_email
wp-includes/comment-template.php 190
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
wp-admin/includes/class-wp-comments-list-table.php 699
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );

Where the hook is used (in WP core)

wp-includes/default-filters.php 239
add_filter( 'comment_email', 'antispambot' );