Remove WordPress meta generator tag from Page Source

WordPress default installation adds meta generator tags to page source showing wordpress version like

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

You can remove the tags and also recommended due to safety reasons


  • Login to Dashboard
  • Go to Appearance>EditorĀ  on left sidebar of Dashboard
  • Now Select functions.php and add following code at the end (before ?> )
remove_action('wp_head', 'wp_generator');
  • Click “Update File” to save (Tags will now be removed)

If functions.php does not exist in your theme then make a file named functions.php and add following in the file

remove_action('wp_head', 'wp_generator');

There are also some plugins available which remove the tags and make things easy for you like Remove Meta Generator Tag