Custom Feed Footer

Place this in your functions.php file to easily add a custom text footer to your WordPress feed.

Code Snippet:

<?php
if ( !function_exists('custom_feed_footer') )
{
	function custom_feed_footer($content)
	{
		if(is_feed())
		$content .= 'Your text';
		return $content;
	}
	add_filter('the_excerpt_rss', 'custom_feed_footer');
	add_filter('the_content', 'custom_feed_footer');
}
?>

Posted in Pure hacks, Social