Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager

package Media Library Assistant
since 1.20

 Methods

Initialization function, similar to __construct()

initialize() : void

since 1.20

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

Clean up the 'save-attachment-compat' values, removing taxonomy updates MLA already handled

mla_admin_init_action() : void

since 1.20

Echo the hidden form for the "Search Terms" popup modal window

mla_echo_terms_search_form() : void

since 1.90

Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.

mla_media_view_settings_filter(array $settings, object $post) : array

Declared public because it is a filter.

since 1.20

Parameters

$settings

array

associative array with setting => value pairs

$post

object

|| NULL current post object, if available

Returns

arrayupdated $settings array

Adds string values to be passed to the Media Manager in /wp-includes/js/media-views.js.

mla_media_view_strings_filter(array $strings, object $post) : array

Declared public because it is a filter.

since 1.20

Parameters

$strings

array

associative array with string => value pairs

$post

object

|| NULL current post object, if available

Returns

arrayupdated $strings array

Prints the templates used in the MLA Media Manager enhancements.

mla_print_media_templates_action() : void

Declared public because it is an action.

since 1.20

Extract value and text elements from Dropdown HTML option tags

mla_terms_options(string $markup) : array

since 1.20

Parameters

$markup

string

HTML markup for taxonomy terms dropdown