Document_Link implements Registerable, Standard_Service, Conditional

Document Link - Edit Document Metabox

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Standard_Service
Conditional

Table of Contents

ID  = 'document_link'
get_button_text()  : string
Get the button text for the file upload button.
is_required()  : mixed
{@inheritdoc}
print_version_history_item_template()  : mixed
Print the underscore template for a single item in the version history list
register()  : mixed
{@inheritdoc}
register_metabox()  : mixed
Register the metabox
render()  : mixed
Render the metabox.
save()  : mixed
Save the metabox values

Constants

Methods

get_button_text()

Get the button text for the file upload button.

public get_button_text(Document $document, string|bool $version_control_mode) : string
Parameters
$document : Document
$version_control_mode : string|bool
Return values
string

is_required()

{@inheritdoc}

public is_required() : mixed
Return values
mixed

print_version_history_item_template()

Print the underscore template for a single item in the version history list

public print_version_history_item_template() : mixed
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Return values
mixed

register_metabox()

Register the metabox

public register_metabox() : mixed
Return values
mixed

render()

Render the metabox.

public render(WP_Post $post) : mixed
Parameters
$post : WP_Post
Return values
mixed

save()

Save the metabox values

public save(mixed $post_id) : mixed
Parameters
$post_id : mixed
Return values
mixed

Search results