Automattic\WooCommerce\Blocks\Integrations

IntegrationRegistry::get_registered()publicWC 1.0

Retrieves a registered Integration by name.

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

Хуков нет.

Возвращает

IntegrationInterface|null. The registered integration, or null if it is not registered.

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

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->get_registered( $name );
$name(строка) (обязательный)
Integration name.

Код IntegrationRegistry::get_registered() WC 8.7.0

public function get_registered( $name ) {
	return $this->is_registered( $name ) ? $this->registered_integrations[ $name ] : null;
}