Automattic\WooCommerce\Internal\ProductFeed\Integrations
IntegrationRegistry::register_integration
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() IntegrationRegistry::register integration code WC 10.8.1
public function register_integration( IntegrationInterface $integration ): void {
$this->integrations[ $integration->get_id() ] = $integration;
}