Skip to content

Instantly share code, notes, and snippets.

@vinamelody
Forked from mikejolley/gist:3709371
Created April 3, 2013 09:40
Show Gist options
  • Save vinamelody/5299813 to your computer and use it in GitHub Desktop.
Save vinamelody/5299813 to your computer and use it in GitHub Desktop.
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' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment