Automattic\WooCommerce\Blocks\Integrations
IntegrationRegistry::get_registered()
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() IntegrationRegistry::get registered WC 9.3.3
public function get_registered( $name ) { return $this->is_registered( $name ) ? $this->registered_integrations[ $name ] : null; }