Automattic\WooCommerce\Internal\ProductFeed\Integrations

IntegrationRegistry::register_integrationpublicWC 10.5.0

Register an Integration.

Method of the class: IntegrationRegistry{}

No Hooks.

Returns

null. Nothing (null).

Usage

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->register_integration( $integration ): void;
$integration(IntegrationInterface) (required)
The integration to register.

Changelog

Since 10.5.0 Introduced.

IntegrationRegistry::register_integration() code WC 10.8.1

public function register_integration( IntegrationInterface $integration ): void {
	$this->integrations[ $integration->get_id() ] = $integration;
}