Add the hidden form for the "Search Terms" popup modal window,
but only once per page load
mla_add_terms_search_form() : void
since
1.90
Add the styles and scripts for the "Search Terms" popup modal window,
but only once per page load
mla_add_terms_search_scripts() : void
since
1.90
Adjust ajax handler for Media Manager queries
mla_admin_init_action() : void
Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.
since
1.20
Add/change custom fields to the Edit Media screen and Modal Window
Called from /wp-admin/includes/media.php, function get_compat_media_markup();
If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
If "get_media_item_args"['in_modal'] => true ) its the Media Manager Modal Window.
For the Modal Window, $form_fields contains all the "compat-attachment-fields"
including the taxonomies, which we want to enhance.
Declared public because it is a filter.
since
1.71
Parameters
$form_fields
array
descriptors for the "compat-attachment-fields"
$post
object
the post to be edited
Returns
arrayupdated descriptors for the "compat-attachment-fields"
Echo the hidden form for the "Search Terms" popup modal window
mla_echo_terms_search_form() : void
since
1.90
Ajax handler for Media Manager "fill compat-attachment-fields" queries
mla_fill_compat_fields_action() : void
Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.
since
1.80
Saves the get_media_item_args array for the attachment_fields_to_edit filter
Share the settings values between mla_media_view_settings_filter
and mla_print_media_templates_action
$mla_media_modal_settings : array
since
1.20
Executing mla_query_attachments_action
$mla_query_attachments : boolean
Informs mla_attachment_fields_to_edit_filter() that MLA enhancements
be added to the compatible fields. Keeps our enhancements out of the
WP 4.0 Media Grid display.
since
1.91
Constants
Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs
JAVASCRIPT_FILL_COMPAT_ACTION : string
since
1.80
Object name for localizing JavaScript - Add Media and related dialogs
JAVASCRIPT_MEDIA_MODAL_OBJECT : string
since
1.20
Slug for localizing and enqueueing JavaScript - Add Media and related dialogs
JAVASCRIPT_MEDIA_MODAL_SLUG : string
since
1.20
Slug for localizing and enqueueing CSS - Add Media and related dialogs
JAVASCRIPT_MEDIA_MODAL_STYLES : string
since
1.20
Slug for the "query attachments" action - Add Media and related dialogs
JAVASCRIPT_QUERY_ATTACHMENTS_ACTION : string
since
1.80
Object name for localizing JavaScript - Terms Search popup
JAVASCRIPT_TERMS_SEARCH_OBJECT : string
since
1.90
Slug for the "update compat-attachment-fields" action - Add Media and related dialogs