Remove Woocommerce 2.1.0 Generator Tag

Woocommerce 2.1.0 changes a few things under the bonnet, generally for the better.

The Generator tag has changed from generator to wc_generator_tag inline to form part of the standard naming convention.

remove_action( 'wp_head', 'wc_generator_tag'  );

So the full syntax to add to your functions.php would be

function my_woocommerce_loaded_function() {
	global $woocommerce;
	remove_action( 'wp_head', 'wc_generator_tag'  );
add_action( 'woocommerce_init', 'my_woocommerce_loaded_function' );


Author: Kieran Barnes

Kieran is a PHP developer with 15 years commercial experience. Specialist in WordPress, CakePHP, CubeCart and all things PHP.

Leave a Reply

Your email address will not be published. Required fields are marked *