WC_Integrations::__construct()publicWC 1.0

Initialize integrations.

Метод класса: WC_Integrations{}

Возвращает

null. Ничего.

Использование

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

Код WC_Integrations::__construct() WC 7.1.0

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;
	}
}