Add support for multisite
-
Hi,
Thank you for this awesome plugin! Would you mind making a small change to allow compatibility with Multisite? This way of checking if WC is activated doesn’t work with Multisite if WC is activated network wide:
if ( ! in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) return;I’ve been searching for the best way to check if a plugin is active network wide myself and I think this is the best solution:
include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); if ( ! is_plugin_active( 'woocommerce/woocommerce.php' ) ) return;https://wordpress.org/plugins/woocommerce-advanced-free-shipping/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Add support for multisite’ is closed to new replies.