• Resolved sosukeinu

    (@sosukeinu)


    Hello,
    Just a quick note. Your plugin is checking to make sure that WooCommerce is activated, However, this misses out if WooCommerce is network activated.
    If you wanted to change this, you could simply change line 19 in main.php to
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || isset(get_site_option( 'active_sitewide_plugins')['woocommerce/woocommerce.php']) ) {

    Thank you for your plugin.

    https://www.ads-software.com/plugins/woocommerce-simply-order-export/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    Thanks for your suggestion. Currently plugin is not multisite compatible, but it is in my future roadmap. ??

    Regards

    Changed that line slightly to:

    if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
        require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
    }
    if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) || is_plugin_active_for_network('woocommerce/woocommerce.php')) {

    to get to work on multisite 4.3.1

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite Compatability’ is closed to new replies.