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 ))

Load the plugin's Style Sheet and Javascript files

mla_admin_enqueue_scripts_action(string $page_hook) : void

since 1.71

Parameters

$page_hook

string

Name of the page being loaded

Adds Custom Field support to the Edit Media screen.

mla_admin_init_action() : void

Declared public because it is an action.

since 0.80

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

Display taxonomy "checklist" form fields

mla_checklist_meta_box(object $target_post, array $box) : void

Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term(). Includes the "? Search" area to filter the term checklist by entering part or all of a word/phrase in the term label. Output to the Media/Edit Media screen and to the Media Manager Modal Window.

since 1.71

Parameters

$target_post

object

The current post

$box

array

The meta box parameters

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

Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window

_mla_ajax_add_flat_term(string $key) : void

Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.

since 1.80

Parameters

$key

string

The taxonomy name, from $_POST['action']

 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

 Constants

 

Object name for localizing JavaScript - Add Media and related dialogs

JAVASCRIPT_EDIT_MEDIA_OBJECT : string

since 1.20
 

Slug for localizing and enqueueing JavaScript - Add Media and related dialogs

JAVASCRIPT_EDIT_MEDIA_SLUG : string

since 1.20
 

Slug for localizing and enqueueing CSS - Add Media and related dialogs

JAVASCRIPT_EDIT_MEDIA_STYLES : string

since 1.20