WC_Dependencies

WC Dependency Checker.

Defined (1)

The class is defined in the following location(s).

/class-wc-dependencies.php  
  1. class WC_Dependencies { 
  2.  
  3. private static $active_plugins; 
  4.  
  5. function init() { 
  6.  
  7. self::$active_plugins = (array) get_option( 'active_plugins', array() ); 
  8.  
  9. if ( is_multisite() ) 
  10. self::$active_plugins = array_merge( self::$active_plugins, get_site_option( 'active_sitewide_plugins', array() ) ); 
  11.  
  12. function woocommerce_active_check() { 
  13.  
  14. if ( ! self::$active_plugins ) self::init(); 
  15.  
  16. return in_array( 'woocommerce/woocommerce.php', self::$active_plugins ) || array_key_exists( 'woocommerce/woocommerce.php', self::$active_plugins ); 
  17.  
  18.