Below is the code to add custom content in WordPress RSS feed.
<?php | |
//* Add custom content in WordPress RSS feed | |
function customprefix_add_custom_content_rss_feed($content) { | |
$content = $content.'<hr>Add custom content here!<hr>'; | |
return $content; | |
} | |
add_filter('the_excerpt_rss', 'customprefix_add_custom_content_rss_feed'); | |
add_filter('the_content_rss', 'customprefix_add_custom_content_rss_feed'); |