Documentation

Description
in package
implements IMetadata

Implements a description field.

Table of Contents

Interfaces

IMetadata
Metadata content of a folder. The metadata can be changed in the arrow-down icon in the folders sidebar toolbar. To handle metadata for folders you can use the add_media_folder_meta function.

Methods

content()  : string
Generate content for meta box.
getDescription()  : string
Get description if set.
save()  : array<string|int, string>
Save content in meta box.
scripts()  : mixed
Enqueue scripts.

Methods

content()

Generate content for meta box.

public content(string $content, IFolder $folder) : string
Parameters
$content : string
$folder : IFolder
Return values
string

getDescription()

Get description if set.

public getDescription(int $folder_id) : string
Parameters
$folder_id : int
Return values
string

save()

Save content in meta box.

public save(array<string|int, string> $response, IFolder $folder, WP_REST_Request $request) : array<string|int, string>
Parameters
$response : array<string|int, string>
$folder : IFolder
$request : WP_REST_Request
Return values
array<string|int, string>

scripts()

Enqueue scripts.

public scripts(Assets $assets) : mixed
Parameters
$assets : Assets

        
On this page

Search results