Removing the author from a WordPress feed

One client didn’t want the author’s e-mail address directly visible, and though it was removed from the theme it still appeared in the feed. Fortunately there’s a filter for that:

function my_remove_author_from_feed( $author ) {
    if ( is_feed() ) {
        $author = '';
    }
    return $author;
}

add_filter('the_author', 'my_remove_author_from_feed');