How to Remove the WordPress Meta Generator Tag

Posted in Articles Featured

Tweet This Share on Facebook Bookmark on Delicious Digg this Submit to Reddit

If you do a view source with your browser on a WordPress site, you often will see this meta “generator” tag …

<meta name=”generator” content=”WordPress 3.0.3″ />

This tells people that you are using WordPress and what version of WordPress you are using. To hide such information from hackers is a good idea.

To not have WordPress generate this meta tag, add the following code to the WordPress theme’s functions.php file…

remove_action('wp_head', 'wp_generator');

You can add it to the bottom of the file, but make sure it is within and above the closing PHP tag


Well, they will still be able to find out if your site is WordPress, but at least now they do not know what version. And always keep your WordPress at the latest version.

Tested on WordPress version 3.0.3.