# MLA_Ajax

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

package | Media Library Assistant
since | 2.20

### Methods

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

    _mla_ajax_add_flat_term( $key) : void

static

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

since | 2.20

### Arguments

#### $key

``

## Initialization function, similar to __construct()

    initialize() : void

static

since | 2.20

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

    mla_admin_init_action()

static

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

static

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

static

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

since | 0.20

### Properties

## True if limiting MLA to AJAX support, false if loading all of MLA

    ajax_only : boolean

static

Recorded here for debug logging purposes; set in mla-plugin-loader.php.

since |
var |

### Type(s)

`boolean`