\MLA_Ajax

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

Summary

Methods
Properties
Constants
initialize()
mla_admin_init_action()
mla_find_posts_ajax_action()
mla_set_parent_ajax_action()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_mla_ajax_add_flat_term()
No private properties found
N/A

Methods

initialize()

initialize() : void

Initialization function, similar to __construct()

mla_admin_init_action()

mla_admin_init_action() 

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

Declared public because it is an action.

mla_find_posts_ajax_action()

mla_find_posts_ajax_action() : void

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

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

mla_set_parent_ajax_action()

mla_set_parent_ajax_action() : void

Ajax handler to set post_parent for a single attachment

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

_mla_ajax_add_flat_term()

_mla_ajax_add_flat_term(  $key) : void

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

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

Parameters

$key