WordPress - How do I remove meta generator tags?

John picture John · May 2, 2013 · Viewed 33.2k times · Source

I have these tags:

<meta name="generator" content="Woo Framework Version 3.1.1" />
<meta name="generator" content="WordPress 3.5" />
<meta name="generator" content="Canvas 3.0" />

I understand to remove the WordPress version tag I add:

remove_action( 'wp_head', 'wp_generator' ); // goes into functions.php

But how do I remove the themes meta tags?

Answer

lmmendes picture lmmendes · Jul 5, 2013

If you are trying only to remove the meta="generator" add this line to your functions.php.

remove_action( 'wp_head', 'wp_generator' );