WordPress\AiClient\Files\ValueObjects

MimeType::isDocument │ public │ WP 0.1.0

Checks if this is a document MIME type.

Method of the class: MimeType{}

No Hooks.

Returns

bool. 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.1.2

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