Automattic\WooCommerce\Blocks\Integrations
IntegrationRegistry::get_registered
Retrieves a registered Integration by name.
Method of the class: IntegrationRegistry{}
No Hooks.
Returns
IntegrationInterface|null. The registered integration, or null if it is not registered.
Usage
$IntegrationRegistry = new IntegrationRegistry(); $IntegrationRegistry->get_registered( $name );
- $name(string) (required)
- Integration name.
IntegrationRegistry::get_registered() IntegrationRegistry::get registered code WC 10.6.2
public function get_registered( $name ) {
return $this->is_registered( $name ) ? $this->registered_integrations[ $name ] : null;
}