Skip to content

Instantly share code, notes, and snippets.

View diegoversiani's full-sized avatar

Diego Versiani diegoversiani

View GitHub Profile
@diegoversiani
diegoversiani / functions.php
Created May 3, 2016 17:40 — forked from jameskoster/functions.php
Query whether WooCommerce is activated
if ( ! function_exists( 'is_woocommerce_activated' ) ) {
function is_woocommerce_activated() {
if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; }
}
}