\MLASettings_CustomFields

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

Summary

Methods
Properties
Constants
mla_admin_enqueue_scripts()
mla_compose_custom_field_tab()
mla_inline_mapping_custom_action()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_save_custom_field_settings()
_process_custom_field_mapping()
No private properties found
N/A

Methods

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_compose_custom_field_tab()

mla_compose_custom_field_tab() : array

Compose the Custom Field tab content for the Settings subpage

Returns

array —

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

mla_inline_mapping_custom_action()

mla_inline_mapping_custom_action() : void

Ajax handler for Custom Fields tab inline mapping

_save_custom_field_settings()

_save_custom_field_settings(  $new_values = NULL) : array

Save custom field settings to the options table

Parameters

$new_values

Returns

array —

Message(s) reflecting the results of the operation

_process_custom_field_mapping()

_process_custom_field_mapping(  $settings = NULL,   $offset,   $length) : array

Process custom field settings against all image attachments without saving the settings to the mla_option

Parameters

$settings
$offset
$length

Returns

array —

Message(s) reflecting the results of the operation