wordpress snippets last updated   : September 29, 2014
we now have 639 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');

Did you like this post? If so please share it with your friends. Thanks!

  • 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.