Plugin doesn't show up when installed in Network Setup
-
The following code is used to check wether WooCommerce is activated:
if ( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) return; // Check if WooCommerce is activeBut, that doesn’t get any Network installed plugins. In my case WooCommerce is installed at Network Level and working perfectly, but the plugin doesn’t show up until I change that line of code into (as stated in this post):
if ( !array_key_exists( 'woocommerce/woocommerce.php', maybe_unserialize( get_site_option( 'active_sitewide_plugins') ) ) ) { return; }I don’t know if this is a good solution for both Network sites and non-Network sites, but atleast it’s a start in the right direction.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Plugin doesn't show up when installed in Network Setup’ is closed to new replies.