Skip to content

Commit b00040a

Browse files
committed
better woocommerce detection (previous one doesn't work multisite)
1 parent 31a23b1 commit b00040a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

woo-taxonomy-report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
/* Check if WooCommerce is active */
30-
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
30+
if( is_plugin_active( 'woocommerce/woocommerce.php' ) ){
3131
/*
3232
* Load library for simple and fast creation of Taxonomy
3333
*/

0 commit comments

Comments
 (0)