Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Remove WooCommerce Generator Tag
function my_woocommerce_loaded_function() {
global $woocommerce;
// remove WC generator tag from <head>
remove_action( 'wp_head', array( $woocommerce, 'generator' ) );
// called only after woocommerce has finished loading
add_action( 'woocommerce_init', 'my_woocommerce_loaded_function' );

Good find. I was trying to hook it on wp_head. Thanks!




2.1 changes the action to

remove_action( 'wp_head', 'wc_generator_tag' );

saas786 commented Feb 13, 2014


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.