WP_Connector_Registry::is_registeredpublicWP 7.0.0

Checks if a connector is registered.

Do not use this method directly. Instead, use the wp_is_connector_registered()

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

Хуков нет.

Возвращает

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

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

$WP_Connector_Registry = new WP_Connector_Registry();
$WP_Connector_Registry->is_registered( $id ): bool;
$id(строка) (обязательный)
The connector identifier.

Заметки

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

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

Код WP_Connector_Registry::is_registered() WP 7.0.3

public function is_registered( string $id ): bool {
	return isset( $this->registered_connectors[ $id ] );
}