MLASettings_Shortcodes

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

package

Media Library Assistant

since 2.40

Methods

Compose the Add Template tab content for the Settings/Shortcodes subpage

_compose_add_template_tab( &$template) : array
static
since 2.40

Arguments

$template

Response

array

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

Compose the Edit Template tab content for the Settings/Shortcodes subpage

_compose_edit_template_tab(array $item,  &$template) : array
static
since 2.40

Arguments

$item

array

Data values for the item.

$template

Response

array

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

Save Shortcodes settings to the options table

_save_shortcodes_settings() : array
static
since 2.40
uses

Response

array

Message(s) reflecting the results of the operation

Process a shortcode template add action.

mla_add_template(array $value) : string
static
since 2.40

Arguments

$value

array

New template values.

Response

string

Action status/error messages.

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 Shortcodes tab content for the Settings subpage

mla_compose_shortcodes_tab() : array
static
since 2.40

Response

array

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

Process a shortcode template copy action.

mla_copy_template(integer $ID) : array
static
since 2.40

Arguments

$ID

integer

Template ID.

Response

array

New template values, action status/error messages.

Process a shortcode template delete action.

mla_delete_template(integer $ID) : string
static
since 2.40

Arguments

$ID

integer

Template ID.

Response

string

Action status/error messages.

Process a shortcode template update action.

mla_update_template(array $value) : string
static
since 2.40

Arguments

$value

array

New template values.

Response

string

Action status/error messages.

Constants

Slug for localizing and enqueueing JavaScript

JAVASCRIPT_SHORTCODES_TAB_SLUG
since
var

Object name for localizing JavaScript

JAVASCRIPT_SHORTCODES_TAB_OBJECT
since
var