Can you revamp your code a little bit to support Multisite?
-
Hi team, can you change your code a bit in your root file to support Multisite?
From:if ( ! in_array( ‘woocommerce/woocommerce.php’, apply_filters( ‘active_plugins’, get_option( ‘active_plugins’ ) ) ) ) { //phpcs:ignore
add_action( ‘admin_notices’, ‘wcpr_admin_notice’ );
}
To:if ( ! is_plugin_active( ‘woocommerce/woocommerce.php’) ) { //phpcs:ignore
add_action( ‘admin_notices’, ‘wcpr_admin_notice’ );
}
- The topic ‘Can you revamp your code a little bit to support Multisite?’ is closed to new replies.