WordPress\AiClient\Files\DTO

File::isImagepublicWP 0.1.0

Checks if the file is an image.

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

Хуков нет.

Возвращает

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

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

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

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

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

Код File::isImage() WP 7.0

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