MLASettings_Upload

Class MLA (Media Library Assistant) Settings Upload implements the Settings/Media Library Assistant Uploads tab

package

Media Library Assistant

since 2.40

Methods

Compose the Edit Upload type tab content for the Settings subpage

_compose_edit_upload_tab( $item,  &$templates) : array
static
since 1.40

Arguments

$item

$templates

Response

array

'message' => status/error messages, 'body' => tab content

Compose the Optional File Upload MIME Types tab content for the Settings subpage

_compose_optional_upload_tab( $page_template_array) : array
static
since 1.40

Arguments

$page_template_array

Response

array

'message' => status/error messages, 'body' => tab content

Get an HTML select element representing a list of icon types

_get_icon_type_dropdown( $templates,  $name,  $selection = '.none.') : string
static
since 1.40

Arguments

$templates

$name

$selection

Response

string

HTML select element or empty string on failure.

Process an Optional Upload MIME Type selection

_process_optional_upload_mime( $ID) : array
static
since 1.40

Arguments

$ID

Response

array

'message' => status/error messages, 'body' => tab content

Save Upload settings to the options table

_save_upload_settings() : array
static
since 1.40
uses

Response

array

Message(s) reflecting the results of the operation

Load the tab's Javascript files

mla_admin_enqueue_scripts(string $page_hook) 
static
since 2.40

Arguments

$page_hook

string

Name of the page being loaded

Compose the File Upload MIME Types tab content for the Settings subpage

mla_compose_upload_tab() : array
static
since 1.40

Response

array

'message' => status/error messages, 'body' => tab content

Ajax handler for Upload MIME Types inline editing (quick edit)

mla_inline_edit_upload_action() : void
static

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

since 1.40

Constants

Object name for localizing JavaScript - MLA Upload List Table

JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT
since
var