Constants

JAVASCRIPT_EDIT_MEDIA_STYLES

JAVASCRIPT_EDIT_MEDIA_STYLES

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

JAVASCRIPT_EDIT_MEDIA_SLUG

JAVASCRIPT_EDIT_MEDIA_SLUG

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

JAVASCRIPT_EDIT_MEDIA_OBJECT

JAVASCRIPT_EDIT_MEDIA_OBJECT

Object name for localizing JavaScript - Add Media and related dialogs

Properties

$mla_references

$mla_references : array

Where-used values for the current item

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.

Type

array

Methods

initialize()

initialize() : void

Initialization function, similar to __construct()

mla_admin_init_action()

mla_admin_init_action() : void

Adds Custom Field support to the Edit Media screen.

Declared public because it is an action.

mla_admin_enqueue_scripts_action()

mla_admin_enqueue_scripts_action(  $page_hook) : void

Load the plugin's Style Sheet and Javascript files

Parameters

$page_hook

mla_upload_post_params()

mla_upload_post_params(array  $post_parms) 

Filter the Media/Add New post parameters.

Parameters

array $post_parms

An array of media upload parameters used by Plupload.

mla_post_upload_ui()

mla_post_upload_ui() 

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

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.

mla_update_attachment_metadata_postfilter()

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

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

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.

Parameters

$data
$post_id
$options

Returns

array —

updated attachment metadata

mla_post_updated_messages_filter()

mla_post_updated_messages_filter(  $messages) : array

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

Declared public because it is a filter.

Parameters

$messages

Returns

array —

updated messages

mla_attachment_submitbox_action()

mla_attachment_submitbox_action() : void

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

Declared public because it is an action.

get_delete_post_link_filter()

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

Adds mla_source argument to Trash/Delete link.

Declared public because it is a filter.

Parameters

string $link

The delete link.

integer $post_id

Post ID.

boolean $force_delete

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

mla_add_meta_boxes_action()

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

Registers meta boxes for the Edit Media screen.

Declared public because it is an action.

Parameters

$post_type
$post

mla_edit_add_help_tab()

mla_edit_add_help_tab(  $admin_title,   $title) : void

Add contextual help tabs to the WordPress Edit Media page

Parameters

$admin_title
$title

mla_parent_info_handler()

mla_parent_info_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_menu_order_handler()

mla_menu_order_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_image_metadata_handler()

mla_image_metadata_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_featured_in_handler()

mla_featured_in_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_inserted_in_handler()

mla_inserted_in_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_gallery_in_handler()

mla_gallery_in_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_mla_gallery_in_handler()

mla_mla_gallery_in_handler(  $post) : void

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

Declared public because it is a callback function.

Parameters

$post

mla_edit_attachment_action()

mla_edit_attachment_action(  $post_ID) : void

Saves updates from the Edit Media screen.

Declared public because it is an action.

Parameters

$post_ID