WordPress\AiClient\Files\DTO

File::isImagepublicWP 0.1.0

Checks if the file is an image.

Method of the class: File{}

No Hooks.

Returns

true|false. True if the file is an image.

Usage

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

Changelog

Since 0.1.0 Introduced.

File::isImage() code WP 7.0

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