\MatthiasWeb\RealMediaLibrary\attachmentCustomField

This class handles all hooks for the custom field in a attachments dialog.

Summary

Methods
Properties
Constants
attachment_fields_to_edit()
getShortcutInfoContainer()
attachment_fields_to_save()
getInstance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$me
N/A

Properties

$me

$me :

Type

Methods

attachment_fields_to_edit()

attachment_fields_to_edit(array  $form_fields,\WP_Post  $post): array

When editing a attachment show up a select option to change the parent folder.

Parameters

array $form_fields
\WP_Post $post

Returns

array

getShortcutInfoContainer()

getShortcutInfoContainer(integer  $postId): string

Get the HTML shortcut info container.

Parameters

integer $postId

The post id

Returns

string

attachment_fields_to_save()

attachment_fields_to_save(\WP_Post  $post,array  $attachment): \WP_Post

When saving a attachment change the parent folder.

Parameters

\WP_Post $post
array $attachment

Returns

\WP_Post

__construct()

__construct()

C'tor.