Post Thumbnails in WordPress RSS Feeds

Add post thumbnails to your RSS Feed in WordPress, add this snippet code to your themes functions.php

function add_featured_image_to_feed($content) {
 global $post;
 if ( has_post_thumbnail( $post->ID ) ){
 $content = '' . get_the_post_thumbnail( $post->ID ) . '' . $content;
 }
 return $content;
}
 
add_filter('the_excerpt_rss', 'add_featured_image_to_feed', 1000, 1);
add_filter('the_content_feed', 'add_featured_image_to_feed', 1000, 1);