JAVASCRIPT_SHORTCODES_TAB_SLUG JAVASCRIPT_SHORTCODES_TAB_SLUG Slug for localizing and enqueueing JavaScript
JAVASCRIPT_SHORTCODES_TAB_OBJECT JAVASCRIPT_SHORTCODES_TAB_OBJECT Object name for localizing JavaScript
mla_admin_enqueue_scripts() mla_admin_enqueue_scripts(string $page_hook) Load the tab's Javascript files Parameters string $page_hook Name of the page being loaded
mla_add_template() mla_add_template(array $value) : string Process a shortcode template add action. Parameters array $value New template values. Returns string — Action status/error messages.
mla_copy_template() mla_copy_template(integer $ID) : array Process a shortcode template copy action. Parameters integer $ID Template ID. Returns array — New template values, action status/error messages.
mla_update_template() mla_update_template(array $value) : string Process a shortcode template update action. Parameters array $value New template values. Returns string — Action status/error messages.
mla_delete_template() mla_delete_template(integer $ID) : string Process a shortcode template delete action. Parameters integer $ID Template ID. Returns string — Action status/error messages.
mla_compose_shortcodes_tab() mla_compose_shortcodes_tab() : array Compose the Shortcodes tab content for the Settings subpage Returns array — 'message' => status/error messages, 'body' => tab content
_save_shortcodes_settings() _save_shortcodes_settings() : array Save Shortcodes settings to the options table Returns array — Message(s) reflecting the results of the operation
_compose_add_template_tab() _compose_add_template_tab( $template) : array Compose the Add Template tab content for the Settings/Shortcodes subpage Parameters $template Returns array — 'message' => status/error messages, 'body' => tab content
_compose_edit_template_tab() _compose_edit_template_tab(array $item, $template) : array Compose the Edit Template tab content for the Settings/Shortcodes subpage Parameters array $item Data values for the item. $template Returns array — 'message' => status/error messages, 'body' => tab content