WordPress at Your Fingertips
function is not described

WC_Integrations::__construct() public WC 1.0

Initialize integrations.

{} It's a method of the class: WC_Integrations{}

Return

null. Nothing.

Usage

$WC_Integrations = new WC_Integrations();
$WC_Integrations->__construct();

Code of WC_Integrations::__construct() WC 5.7.1

public function __construct() {

	do_action( 'woocommerce_integrations_init' );

	$load_integrations = array(
		'WC_Integration_MaxMind_Geolocation',
	);

	$load_integrations = apply_filters( 'woocommerce_integrations', $load_integrations );

	// Load integration classes.
	foreach ( $load_integrations as $integration ) {

		$load_integration = new $integration();

		$this->integrations[ $load_integration->id ] = $load_integration;
	}
}