Open dartiss opened 5 years ago
Use code like this to detect if Woo is in use. Only show stats if the site uses it...
if ( ! function_exists( 'is_woocommerce_activated' ) ) {
function is_woocommerce_activated() {
if ( class_exists( 'woocommerce' ) ) { return true; } else { return false; }
}
}
https://w3techs.com/technologies/details/cm-woocommerce/all/all