WordPress\AiClient\Files\ValueObjects

MimeType::isDocumentpublicWP 0.1.0

Checks if this is a document MIME type.

Method of the class: MimeType{}

No Hooks.

Returns

true|false. True if this is a document type.

Usage

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

Changelog

Since 0.1.0 Introduced.

MimeType::isDocument() code WP 7.0

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