WooCommerce Activation Not Detected on WordPress Multisite
-
Any chance you all could release an update that checks network activated plugins for WooCommerce as well? Right now I’m receiving a message from the plugin about WooCommerce activation being required when it already is. Thank you!
May I suggest modifying the validateRequiredPlugins function to be similar to the following:
private function validateRequiredPlugins() { $plugins = array(); /** * Check if WooCommerce is active **/ $plugin = 'woocommerce/woocommerce.php'; $subsite_active_plugins = apply_filters('active_plugins', get_option('active_plugins')); $network_active_plugins = apply_filters('active_plugins', get_site_option('active_sitewide_plugins')); if((empty($subsite_active_plugins) || !in_array($plugin, $subsite_active_plugins)) && (empty($network_active_plugins) || !array_key_exists($plugin, $network_active_plugins))) { $plugins[] = '<a target="_blank" href="https://www.ads-software.com/plugins/woocommerce/">WooCommerce</a>'; } return $plugins; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘WooCommerce Activation Not Detected on WordPress Multisite’ is closed to new replies.