Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager
Methods
Initialization function, similar to __construct()
initialize() : void
Add the styles and scripts for the "Search Terms" popup modal window,
but only once per page load
mla_add_terms_search_scripts() : void
Clean up the 'save-attachment-compat' values, removing taxonomy updates MLA already handled
mla_admin_init_action() : void
Extract value and text elements from Dropdown HTML option tags
mla_terms_options(string $markup) : array
Parameters
$markup
string
HTML markup for taxonomy terms dropdown
Returns
array
( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )
Display a monthly dropdown for filtering items
_months_dropdown(string $post_type) : array
Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()
Parameters
$post_type
string
post_type, e.g., 'attachment'
Returns
array
( value => label ) pairs
Properties
Constants
Object name for localizing JavaScript - Terms Search popup
JAVASCRIPT_TERMS_SEARCH_OBJECT : string