Remove the WordPress Generator in RSS Feeds

In a previous post, I showed you how-to remove the WordPress Generator from the HTML head tag of your website. In this post I’ll show you how-to remove the WordPress generator from the RSS feed and RSS comments feed.The following is the tag that will be removed by using this code snippet:


Where is the version your WordPress installation is running on.

The purpose of this code snippet is to simply help harden your WordPress installation. By using this code snippet and the previous code snippet I posted, malicious individuals won’t be able to figure out what version of WordPress you are using; by viewing your website’s source.

Here is the code snippet:

// Remove the WordPress Generator tag in RSS Feeds 
function remove_wp_generator_rss() { return''; } 

Just add this code snippet to your theme’s functions.php file.