Support » Plugin: WooCommerce Catalog Booster » WooCommerce detection problem on multisite

  • Hello,

    The plugin did not activate because on my WordPress Multisite, WooCommerce is not site wide activated.
    Here is the correct ic_is_woocommerce_active function (wworking for me) :

    function ic_is_woocommerce_active() {
    	$plugin_file = 'woocommerce/woocommerce.php';
    	if ( in_array( $plugin_file, apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
    		return true;
    	}
    	if ( is_multisite() ) {
    		$plugins = get_site_option( 'active_sitewide_plugins' );
    		if ( isset( $plugins[ $plugin_file ] ) ) {
    			return true;
    		}
    	}
    
    	return false;
    }

    If you can add this modification, it will be great.
    Thank you for your plugin.

  • The topic ‘WooCommerce detection problem on multisite’ is closed to new replies.