MLA_VERSION_OPTION
MLA_VERSION_OPTION
Provides a unique name for the current version option
Class MLA (Media Library Assistant) Options manages the plugin option settings and provides functions to get and put them from/to WordPress option variables
Separated from class MLASettings in version 1.00
mla_get_option( $option, $get_default = false, $get_stored = false, $option_table = NULL) : mixed
Return the stored value or default value of a defined MLA option
Compatibility shim for MLACore::mla_get_option
$option | ||
$get_default | ||
$get_stored | ||
$option_table |
Value(s) for the option or false if the option is not a defined MLA option
mla_update_option( $option, $newvalue, $option_table = NULL) : boolean
Add or update the stored value of a defined MLA option
Compatibility shim for MLACore::mla_update_option
$option | ||
$newvalue | ||
$option_table |
True if the value was changed or false if the update failed
mla_taxonomy_support( $tax_name, $support_type = 'support') : boolean|string
Determine MLA support for a taxonomy, handling the special case where the settings are being updated or reset.
Compatibility shim for MLACore::mla_taxonomy_support
$tax_name | ||
$support_type |
true if the taxonomy is supported in this way else false. string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by.
mla_attachment_display_settings_option_handler( $action, $key, $value, $args = NULL) : string
Render and manage Attachment Display Settings options; alignment, link type and size
$action | ||
$key | ||
$value | ||
$args |
HTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_taxonomy_option_handler( $action, $key, $value, $args = NULL) : string
Render and manage taxonomy support options, e.g., Categories and Post Tags
$action | ||
$key | ||
$value | ||
$args |
HTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_search_option_handler( $action, $key, $value, $args = NULL) : string
Render and manage Search box options, e.g., connector and search fields
$action | ||
$key | ||
$value | ||
$args |
HTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_update_attachment_metadata_filter( $data, $post_id) : array
Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment
This filter tests the $add_attachment_id variable set by the mla_add_attachment_action to ensure that mapping is only performed for new additions, not metadata updates.
$data | ||
$post_id |
Updated attachment metadata
mla_get_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL) : string|array
Get IPTC/EXIF or custom field mapping data source; WP_ADMIN mode
Compatibility shim for MLAData_Source::mla_get_data_source.
$post_id | ||
$category | ||
$data_value | ||
$attachment_metadata |
data source value
mla_evaluate_custom_field_mapping( $post_id, $category, $settings = NULL, $attachment_metadata = NULL) : array
Evaluate custom field mapping updates for a post
$post_id | ||
$category | ||
$settings | ||
$attachment_metadata |
Updates suitable for MLAData::mla_update_single_item, if any
mla_custom_field_option_handler( $action, $key, $value, $args = NULL) : string
Render and manage custom field mapping options
$action | ||
$key | ||
$value | ||
$args |
HTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_evaluate_iptc_exif_mapping( $post, $category, $settings = NULL, $attachment_metadata = NULL, $is_upload = false) : array
Evaluate IPTC/EXIF mapping updates for a post
$post | ||
$category | ||
$settings | ||
$attachment_metadata | ||
$is_upload |
Updates suitable for MLAData::mla_update_single_item, if any
_update_custom_field_mapping( $current_values, $new_values) : array
Update custom field mappings
$current_values | ||
$new_values |
( 'message' => HTML message(s) reflecting results, 'values' => updated custom_field_mapping values, 'changed' => true if any changes detected else false )
_update_iptc_exif_standard_mapping( $current_values, $new_values) : array
Update Standard field portion of IPTC/EXIF mappings
$current_values | ||
$new_values |
( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )
_update_iptc_exif_taxonomy_mapping( $current_values, $new_values) : array
Update Taxonomy term portion of IPTC/EXIF mappings
$current_values | ||
$new_values |
( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )
_update_iptc_exif_custom_mapping( $current_values, $new_values) : array
Update Custom field portion of IPTC/EXIF mappings
$current_values | ||
$new_values |
( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )