Created
September 12, 2012 19:41
-
-
Save mikejolley/3709371 to your computer and use it in GitHub Desktop.
Remove WooCommerce Generator Tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ); |
Thanks!
2.1 changes the action to
remove_action( 'wp_head', 'wc_generator_tag' );
Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good find. I was trying to hook it on wp_head. Thanks!