WC_Integrations::get_integration()publicWC 3.9.0

Return a desired integration.

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

Хуков нет.

Возвращает

Разное|null. The integration if one is found, otherwise null.

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

$WC_Integrations = new WC_Integrations();
$WC_Integrations->get_integration( $id );
$id(строка) (обязательный)
The id of the integration to get.

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

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

Код WC_Integrations::get_integration() WC 8.7.0

public function get_integration( $id ) {
	if ( isset( $this->integrations[ $id ] ) ) {
		return $this->integrations[ $id ];
	}

	return null;
}