WC_Integrations

WooCommerce Integrations class.

Defined (1)

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

/includes/class-wc-integrations.php  
  1. class WC_Integrations { 
  2.  
  3. /** 
  4. * Array of integrations. 
  5. * @var array 
  6. */ 
  7. public $integrations = array(); 
  8.  
  9. /** 
  10. * Initialize integrations. 
  11. */ 
  12. public function __construct() { 
  13.  
  14. do_action( 'woocommerce_integrations_init' ); 
  15.  
  16. $load_integrations = apply_filters( 'woocommerce_integrations', array() ); 
  17.  
  18. // Load integration classes 
  19. foreach ( $load_integrations as $integration ) { 
  20.  
  21. $load_integration = new $integration(); 
  22.  
  23. $this->integrations[ $load_integration->id ] = $load_integration; 
  24.  
  25. /** 
  26. * Return loaded integrations. 
  27. * @access public 
  28. * @return array 
  29. */ 
  30. public function get_integrations() { 
  31. return $this->integrations;