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