WordPress\AiClient\Providers\Http\Collections

HeadersCollection::haspublicWP 0.1.0

Checks if a header exists.

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

Хуков нет.

Возвращает

bool. True if the header exists, false otherwise.

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

$HeadersCollection = new HeadersCollection();
$HeadersCollection->has( $name ): bool;
$name(строка) (обязательный)
The header name (case-insensitive).

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

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

Код HeadersCollection::has() WP 7.1.2

public function has(string $name): bool
{
    return isset($this->headersMap[strtolower($name)]);
}