get_comment_author_email filter-hook . WP 1.5.0
Filters the comment author's returned email address.
Usage
add_filter( 'get_comment_author_email', 'filter_function_name_4504', 10, 3 ); function filter_function_name_4504( $comment_author_email, $comment_ID, $comment ){ // filter... return $comment_author_email; }
- $comment_author_email(string)
- The comment author's email address.
- $comment_ID(int)
- The comment ID.
- $comment(WP_Comment)
- The comment object.
Changelog
Since 1.5.0 | Introduced. |
Since 4.1.0 | The $comment_ID and $comment parameters were added. |
Where the hook is called
get_comment_author_email
wp-includes/comment-template.php 99
return apply_filters( 'get_comment_author_email', $comment->comment_author_email, $comment->comment_ID, $comment );