get_comment_author_email
get_comment_author_email is a filter on the output of get_comment_author_email(). Note that this is related to author_email, which only runs on comment_author_email(). get_comment_author_email, however, will cover both functions.
Context:
File: wp-includes/comment-functions.php
function get_comment_author_email() {
global $comment;
return apply_filters('get_comment_author_email', $comment->comment_author_email);
}
function comment_author_email() {
echo apply_filters('author_email', get_comment_author_email() );
}
This hook is a filter which means that information is passed through it, and then used by WordPress. Your function needs to accept that information, and return it. Using add_filter('get_comment_author_email', 'your_function'); helps you to remember this distinction. When you are passing an ID, it is assumed that you will return the ID as it was given to you. With filters that pass strings or arrays, you may manipulate the information before passing it along.