Class MLA (Media Library Assistant) Edit contains meta boxes for the Edit Media (advanced-form-edit.php) screen

package Media Library Assistant
since 0.80

 Methods

Initialization function, similar to __construct()

initialize() : void

since 0.80

Registers meta boxes for the Edit Media screen.

mla_add_meta_boxes_action(string $post_type, object $post) : void

Declared public because it is an action.

since 0.80

Parameters

$post_type

string

type of the current post, e.g., 'attachment' (optional, default 'unknown')

$post

object

current post (optional, default (object) array ( 'ID' => 0 ))

Adds Last Modified date to the Submit box on the Edit Media screen.

mla_attachment_submitbox_action() : void

Declared public because it is an action.

since 0.80

Adds Custom Field support to the Edit Media screen.

mla_custom_field_support_action() : void

Declared public because it is an action.

since 0.80

Add contextual help tabs to the WordPress Edit Media page

mla_edit_add_help_tab(string $admin_title, string $title) : void

since 0.90

Parameters

$admin_title

string

title as shown on the screen

$title

string

title as shown in the HTML header

Saves updates from the Edit Media screen.

mla_edit_attachment_action(integer $post_ID) : void

Declared public because it is an action.

since 0.80

Parameters

$post_ID

integer

ID of the current post

Renders the Inserted in meta box on the Edit Media page.

mla_inserted_in_handler(object $post) : void

Declared public because it is a callback function.

since 0.80

Parameters

$post

object

current post

Renders the Menu Order meta box on the Edit Media page.

mla_menu_order_handler(object $post) : void

Declared public because it is a callback function.

since 0.80

Parameters

$post

object

current post

Renders the Parent Info meta box on the Edit Media page.

mla_parent_info_handler(object $post) : void

Declared public because it is a callback function.

since 0.80

Parameters

$post

object

current post

Adds mapping update messages for display at the top of the Edit Media screen.

mla_post_updated_messages_filter(array $messages) : array

Declared public because it is a filter.

since 1.10

Parameters

$messages

array

messages for the Edit screen

Returns

arrayupdated messages

 Properties

 

Where-used values for the current item

$mla_references : array

This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item. The array is built once each page load and cached for subsequent calls.

since 0.80