WordPress\AiClient\Files\DTO

File::getBase64DatapublicWP 0.1.0

Gets the base64-encoded data for inline files.

Method of the class: File{}

No Hooks.

Returns

String|null. The plain base64-encoded data (without data URI prefix), or null if not an inline file.

Usage

$File = new File();
$File->getBase64Data(): ?string;

Changelog

Since 0.1.0 Introduced.

File::getBase64Data() code WP 7.0

public function getBase64Data(): ?string
{
    return $this->base64Data;
}