On this page
apply_filters( 'comment_email', string $comment_author_email, WP_Comment $comment )
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
File: wp-includes/comment-template.php. View all references
$email = apply_filters( 'comment_email', $comment->comment_author_email, $comment );
Related
Used By
| Used By | Description |
|---|---|
| WP_Comments_List_Table::column_author() wp-admin/includes/class-wp-comments-list-table.php | |
| get_comment_author_email_link() wp-includes/comment-template.php | Returns the HTML email link to the author of the current comment. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_email