WordPress\AiClient\Files\DTO

File::isTextpublicWP 0.1.0

Checks if the file is text.

Method of the class: File{}

No Hooks.

Returns

true|false. True if the file is text.

Usage

$File = new File();
$File->isText(): bool;

Changelog

Since 0.1.0 Introduced.

File::isText() code WP 7.0

public function isText(): bool
{
    return $this->mimeType->isText();
}