Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::is_registered()publicWC 1.0

Checks if an integration is already registered.

Method of the class: IntegrationRegistry{}

No Hooks.

Return

true|false. True if the integration is registered, false otherwise.

Usage

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->is_registered( $name );
$name(string) (required)
Integration name.

IntegrationRegistry::is_registered() code WC 8.7.0

public function is_registered( $name ) {
	return isset( $this->registered_integrations[ $name ] );
}