Automattic\WooCommerce\Internal\ProductFeed\Integrations

IntegrationRegistry::get_integrationpublicWC 10.5.0

Get an Integration by ID.

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

Хуков нет.

Возвращает

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

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

$IntegrationRegistry = new IntegrationRegistry();
$IntegrationRegistry->get_integration( $id ): ?IntegrationInterface;
$id(строка) (обязательный)
The ID of the Integration.

Список изменений

С версии 10.5.0 Введена.

Код IntegrationRegistry::get_integration() WC 10.5.2

public function get_integration( string $id ): ?IntegrationInterface {
	return $this->integrations[ $id ] ?? null;
}