WordPress\AiClientDependencies\Psr\Http\Message

UriInterface::getHost │ public │ WP 1.0

Retrieve the host component of the URI.

If no host is present, this method MUST return an empty string.

The value returned MUST be normalized to lowercase, per RFC 3986 Section 3.2.2.

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

Хуков нет.

Возвращает

string. The URI host.

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

$UriInterface = new UriInterface();
$UriInterface->getHost(): string;

Заметки

Смотрите: http://tools.ietf.org/html/rfc3986#section-3.2.2

Код UriInterface::getHost() WP 7.1.2

public function getHost(): string;