Remove meta name=”generator” content=”WordPress”

As of WordPress 2.5, and beyond, the <meta name=”generator” content=”WordPress” /> meta tag was moved from the template to the core of WordPress. This means that you can no longer simply remove the call from the template. We now need to include a function in functions.php In order to remove meta name generator” content tag. I feel it’s important to remove this tag, because it exposes the WordPress version your site is running which could lead a person to expose vulnerabilities for the particular WordPress version and further compromise your site.

How to Remove <meta name=”generator” content=”WordPress” />

The following simple solution will allow you to quickly remove the <meta name=”generator” content=”WordPress 2.X” /> tag from WordPress

  1. Login to your WordPress admin panel
  2. Navigate to Design -> Theme Editor and click Theme Functions (functions.php) from the list of theme files
  3. Just before the closing ?> tag, add the following:
  4. remove_action(‘wp_head’, ‘wp_generator’);

  5. Click the Update file button and go view the source of your site

If all goes well, the <meta name=”generator” content=”WordPress” /> should be removed.

Enjoy! 😉