• Resolved Václav Greif

    (@vasikgreif)


    Hi,
    thanks for an awesome plugin. I have multisite activated with WooCommerce andf WC Cancel Order plugin activated only on one subsite. That doesn’t seem to be a supported scenario though because of the init logic. I modified the init to this, so the plugin does initialize, but it’s obviously not upgrade safe. Could you please add that to the core plugin?

    if(function_exists('is_multisite') && is_multisite()){
        if(!function_exists( 'is_plugin_active_for_network')){
            require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
        }
        if(is_plugin_active_for_network('woocommerce/woocommerce.php')){
            if(!is_plugin_active_for_network('wc-cancel-order-pro/wc-cancel-order-pro.php')){
                WC_Cancel_Order_Init();
            }
        } else if (in_array('woocommerce/woocommerce.php',apply_filters('active_plugins',get_option('active_plugins')))) {
    	    if(!in_array('wc-cancel-order-pro/wc-cancel-order-pro.php',apply_filters('active_plugins',get_option('active_plugins')))){
    		    WC_Cancel_Order_Init();
    	    }
        }
    }

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Multisite activation’ is closed to new replies.