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, int $post_id, bool $force_delete) 

Declared public because it is a filter.

since 2.25

Parameters

$link

string

The delete link.

$post_id

int

Post ID.

$force_delete

bool

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

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

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

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

mla_post_upload_ui() 

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

Filter the Media/Add New post parameters.

mla_upload_post_params(array $post_parms) 

since 2.02

Parameters

$post_parms

array

An array of media upload parameters used by Plupload.

 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