WordPress\AiClient\Files\ValueObjects

MimeType::isDocument │ public │ WP 0.1.0

Checks if this is a document MIME type.

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

Хуков нет.

Возвращает

bool. True if this is a document type.

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

$MimeType = new MimeType();
$MimeType->isDocument(): bool;

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

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

Код MimeType::isDocument() WP 7.1.4

public function isDocument(): bool
{
    return in_array($this->value, self::$documentTypes, \true);
}