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
| package |
Media Library Assistant |
|---|---|
| since | 1.00 |
_get_custom_field_names() : array
The list will include any Custom Field and IPTC/EXIF rules that haven't been mapped to any attachments, yet.
| since | 1.00 |
|---|---|
arrayCustom field names from the postmeta table and MLA rules
_get_term_id( $term_name, $term_parent, $taxonomy, &$post_terms) : integer
| since | 2.01 |
|---|
integerterm_id for the term name
_load_option_templates() : void
| since | 0.80 |
|---|---|
_update_custom_field_mapping( $current_values, $new_values) : array
| since | 1.10 |
|---|
array( 'message' => HTML message(s) reflecting results, 'values' => updated custom_field_mapping values, 'changed' => true if any changes detected else false )
_update_iptc_exif_custom_mapping( $current_values, $new_values) : array
| since | 1.00 |
|---|
array( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )
_update_iptc_exif_standard_mapping( $current_values, $new_values) : array
| since | 1.00 |
|---|
array( '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
| since | 1.00 |
|---|
array( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )
initialize() : void
| since | 1.00 |
|---|---|
mla_compose_custom_field_option_list( $selection = 'none', $blacklist = array()) : string
| since | 1.10 |
|---|---|
| uses |
contains row and table templates |
stringHTML markup with select field options
mla_compose_data_source_option_list( $selection = 'none') : string
| since | 1.10 |
|---|---|
| uses |
contains row and table templates |
stringHTML markup with select field options
mla_compose_iptc_option_list( $selection = 'none') : string
| since | 1.00 |
|---|---|
| uses |
contains row and table templates |
stringHTML markup with select field options
mla_compose_parent_option_list( $taxonomy, $selection) : string
| since | 1.00 |
|---|---|
| uses |
contains row and table templates |
stringHTML markup with select field options
mla_custom_field_option_handler( $action, $key, $value, $args = NULL) : string
| since | 1.10 |
|---|---|
| uses |
contains row and table templates |
stringHTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_delete_option( $option, $option_table = NULL) : boolean
Compatibility shim for MLACore::mla_delete_option
| since | 0.1 |
|---|
booleanTrue if the option was deleted, otherwise false
mla_evaluate_custom_field_mapping( $post_id, $category, $settings = NULL, $attachment_metadata = NULL) : array
| since | 1.10 |
|---|
arrayUpdates suitable for MLAData::mla_update_single_item, if any
mla_evaluate_iptc_exif_mapping( $post, $category, $settings = NULL, $attachment_metadata = NULL, $is_upload = false) : array
| since | 1.00 |
|---|
arrayUpdates suitable for MLAData::mla_update_single_item, if any
mla_get_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL) : string|array
Compatibility shim for MLAData_Source::mla_get_data_source.
| since | 1.70 |
|---|
string|arraydata source value
mla_get_option( $option, $get_default = false, $get_stored = false, $option_table = NULL) : mixed
Compatibility shim for MLACore::mla_get_option
| since | 0.1 |
|---|
mixedValue(s) for the option or false if the option is not a defined MLA option
mla_iptc_exif_option_handler( $action, $key, $value, $args = NULL) : string
| since | 1.00 |
|---|---|
| uses |
contains row and table templates |
stringHTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_is_data_source( $candidate_name) : boolean
Compatibility shim for MLAData_Source::mla_is_data_source.
| since | 1.80 |
|---|
booleantrue if candidate name matches a data source
mla_search_option_handler( $action, $key, $value, $args = NULL) : string
| since | 1.90 |
|---|---|
| uses |
contains search-table template |
stringHTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_supported_taxonomies( $support_type = 'support') : array
Compatibility shim for MLACore::mla_taxonomy_support
| since | 1.90 |
|---|
arraytaxonomies assigned to $support_type; can be empty.
mla_taxonomy_option_handler( $action, $key, $value, $args = NULL) : string
| since | 0.30 |
|---|---|
| uses |
contains taxonomy-row and taxonomy-table templates |
stringHTML table row markup for 'render' else message(s) reflecting the results of the operation.
mla_taxonomy_support( $tax_name, $support_type = 'support') : boolean|string
Compatibility shim for MLACore::mla_taxonomy_support
| since | 0.30 |
|---|
boolean|stringtrue 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_update_option( $option, $newvalue, $option_table = NULL) : boolean
Compatibility shim for MLACore::mla_update_option
| since | 0.1 |
|---|
booleanTrue if the value was changed or false if the update failed
mla_wp_handle_upload_filter( $file) : array
| since | 1.70 |
|---|
arrayupdated file parameters
mla_wp_handle_upload_prefilter_filter( $file) : array
| since | 1.70 |
|---|
arrayupdated file parameters
mla_option_templates : array
| since | |
|---|---|
| var |
array