wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Remove WordPress version from RSS feed

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will remove the wordpres version from your rss feed.

snippet :  PHPcopy
	function remove_feed_generator() {
	return '';
	}
	add_filter('the_generator', 'remove_feed_generator');

  • http://www.cliffpaulick.com Cliff Paulick

    Is this just from the feed or also from the HTML code? Is there a reason to not take it out of there too?

    • http://wpsnipp.com Kevin Chard

      This is just for the feed and in regards to the I’m not sure of any reasons not to take out the version number.

jqsnipp.com | we just launched jquery snippets website