# MLAEdit

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

## Adds mla_source argument to Trash/Delete link.

    get_delete_post_link_filter(string $link, integer $post_id, boolean $force_delete)

static

Declared public because it is a filter.

since | 2.25

### Arguments

#### $link

`string`

The delete link.

#### $post_id

`integer`

Post ID.

#### $force_delete

`boolean`

Whether to bypass the trash and force deletion. Default false.

## Initialization function, similar to __construct()

    initialize() : void

static

since | 0.80

## Registers meta boxes for the Edit Media screen.

    mla_add_meta_boxes_action( $post_type = 'unknown',  $post = NULL) : void

static

Declared public because it is an action.

since | 0.80

### Arguments

#### $post_type

``

#### $post

``

## Load the plugin's Style Sheet and Javascript files

    mla_admin_enqueue_scripts_action( $page_hook) : void

static

since | 1.71

### Arguments

#### $page_hook

``

## Adds Custom Field support to the Edit Media screen.

    mla_admin_init_action() : void

static

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

static

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( $admin_title,  $title) : void

static

since | 0.90

### Arguments

#### $admin_title

``

#### $title

``

## Saves updates from the Edit Media screen.

    mla_edit_attachment_action( $post_ID) : void

static

Declared public because it is an action.

since | 0.80

### Arguments

#### $post_ID

``

## Renders the Featured in meta box on the Edit Media page.

    mla_featured_in_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

## Renders the Gallery in meta box on the Edit Media page.

    mla_gallery_in_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

## Renders the Image Metadata meta box on the Edit Media page.

    mla_image_metadata_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

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

    mla_inserted_in_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

## Renders the MLA Gallery in meta box on the Edit Media page.

    mla_mla_gallery_in_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

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

    mla_parent_info_handler( $post) : void

static

Declared public because it is a callback function.

since | 0.80

### Arguments

#### $post

``

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

    mla_post_updated_messages_filter( $messages) : array

static

Declared public because it is a filter.

since | 1.10

### Arguments

#### $messages

``

### Response

`array`

updated messages

## Echoes bulk edit area HTML to the Media/Add New screen

    mla_post_upload_ui()

static

Fires on the post upload UI screen; legacy (pre-3.5.0) upload interface. Anything echoed here goes below the "Maximum upload file size" message and above the id="media-items" div.

since | 2.02

## Apply Media/Add New bulk edit area updates, if any

    mla_update_attachment_metadata_postfilter( $data,  $post_id,  $options = array('is_upload' => true)) : array

static

This filter is called AFTER MLA mapping rules are applied during wp_update_attachment_metadata() processing. If none of the mapping rules is enabled it is called from the 'wp_update_attachment_metadata' filter with just two arguments.

since | 2.02

### Arguments

#### $data

``

#### $post_id

``

#### $options

``

### Response

`array`

updated attachment metadata

## Filter the Media/Add New post parameters.

    mla_upload_post_params(array $post_parms)

static

since | 2.02

### Arguments

#### $post_parms

`array`

An array of media upload parameters used by Plupload.

### Constants

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

    JAVASCRIPT_EDIT_MEDIA_STYLES

since |
var |

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

    JAVASCRIPT_EDIT_MEDIA_SLUG

since |
var |

## Object name for localizing JavaScript - Add Media and related dialogs

    JAVASCRIPT_EDIT_MEDIA_OBJECT

since |
var |

### Properties

## Where-used values for the current item

    mla_references : array

static

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

### Type(s)

`array`