WC_Dependencies
WC Dependency Checker.
Defined (1)
The class is defined in the following location(s).
- /class-wc-dependencies.php
- class WC_Dependencies {
- private static $active_plugins;
- function init() {
- self::$active_plugins = (array) get_option( 'active_plugins', array() );
- if ( is_multisite() )
- self::$active_plugins = array_merge( self::$active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
- }
- function woocommerce_active_check() {
- if ( ! self::$active_plugins ) self::init();
- return in_array( 'woocommerce/woocommerce.php', self::$active_plugins ) || array_key_exists( 'woocommerce/woocommerce.php', self::$active_plugins );
- }
- }