MLASettings_CustomFields

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

package

Media Library Assistant

since 2.40

Methods

Add a custom field rule from values in $_REQUEST

_add_custom_field_rule() : string
static
since 2.50
uses

for field-level values

Response

string

Message(s) reflecting the results of the operation

Update a custom field rule from Bulk Edit action values in $_REQUEST

_bulk_update_custom_field_rule(integer $post_id) : string
static
since 2.50
uses

for field-level values

Arguments

$post_id

integer

ID value of rule to update

Response

string

status/error message

Compose the Edit Custom Field Rule tab content for the Settings/Custom Field subpage

_compose_edit_custom_field_rule_tab(array $item,  &$template) : array
static
since 2.50

Arguments

$item

array

Data values for the item.

$template

Response

array

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

Delete a custom field rule

_delete_custom_field_rule(integer $post_id) : array
static
since 2.50

Arguments

$post_id

integer

ID value of rule to delete

Response

array

Message(s) reflecting the results of the operation

Process custom field rules against all image attachments

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

Arguments

$settings

$offset

$length

Response

array

Message(s) reflecting the results of the operation

Purge one or more custom field values for Bulk action

_purge_custom_field_values(array $rule_ids) : array
static
since 2.50

Arguments

$rule_ids

array

ID value of rule(s), to get field names

Response

array

Message(s) reflecting the results of the operation

Save custom field settings to the options table

_save_custom_field_settings() : array
static
since 1.10

Response

array

Message(s) reflecting the results of the operation

Update a custom field rule from full-screen Edit Rule values in $_REQUEST

_update_custom_field_rule(integer $post_id,  &$template) : array
static
since 2.50
uses

for field-level values

Arguments

$post_id

integer

ID value of rule to update

$template

Response

array

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

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

mla_compose_custom_field_tab() : array
static
since 1.10

Response

array

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

Ajax handler for Custom Fields inline editing (quick edit)

mla_inline_edit_custom_action() : void
static

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

since 2.50

Ajax handler for Custom Fields tab inline mapping

mla_inline_mapping_custom_action() : void
static
since 2.00

Constants

Object name for localizing JavaScript - MLA Custom Fields List Table

JAVASCRIPT_INLINE_EDIT_CUSTOM_OBJECT
since
var