Class MLA (Media Library Assistant) Ajax contains handlers for simple Ajax requests

package Media Library Assistant
since 2.20

 Methods

Initialization function, similar to __construct()

initialize() : void

since 2.20

Adds flat checklist taxonomy support to the Media Manager Modal Window.

mla_admin_init_action() 

Declared public because it is an action.

since 2.20

Ajax handler to fetch candidates for the "Set Parent" popup window

mla_find_posts_ajax_action() : void

Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php. Adds filters for post type and pagination.

since 1.90

Ajax handler to set post_parent for a single attachment

mla_set_parent_ajax_action() : void

Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php

since 0.20

Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window

_mla_ajax_add_flat_term(string $key) : void

Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.

since 2.20

Parameters

$key

string

The taxonomy name, from $_POST['action']