Skip to content

Instantly share code, notes, and snippets.

View vinamelody's full-sized avatar

Vina Melody vinamelody

View GitHub Profile
@vinamelody
vinamelody / 0_reuse_code.js
Created July 26, 2014 03:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
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' );