initialize()
mla_add_attachment_action()
mla_attachment_display_settings_option_handler()
mla_custom_field_option_handler()
mla_delete_option()
mla_evaluate_custom_field_mapping()
mla_evaluate_iptc_exif_mapping()
mla_get_data_source()
mla_get_option()
mla_iptc_exif_option_handler()
mla_is_data_source()
mla_search_option_handler()
mla_supported_taxonomies()
mla_taxonomy_option_handler()
mla_taxonomy_support()
mla_update_attachment_metadata_filter()
mla_update_option()
mla_wp_handle_upload_filter()
mla_wp_handle_upload_prefilter_filter()
_compose_custom_field_option_list()
_compose_data_source_option_list()
_compose_iptc_option_list()
_compose_parent_option_list()
_get_custom_field_names()
_get_term_id()
_load_option_templates()
_update_attachment_metadata()
_update_custom_field_mapping()
_update_iptc_exif_custom_mapping()
_update_iptc_exif_standard_mapping()
_update_iptc_exif_taxonomy_mapping()
$add_attachment_id
$mla_option_templates
MLA_ADD_NEW_BULK_EDIT
MLA_ADD_NEW_BULK_EDIT_ON_TOP
MLA_BULK_CHUNK_SIZE
MLA_COUNT_TERM_ATTACHMENTS
MLA_DEBUG_DISPLAY_LIMIT
MLA_DEBUG_FILE
MLA_DEBUG_REPLACE_LEVEL
MLA_DEBUG_REPLACE_PHP_LOG
MLA_DEBUG_REPLACE_PHP_REPORTING
MLA_DEFAULT_ORDER
MLA_DEFAULT_ORDERBY
MLA_EDIT_MEDIA_META_BOXES
MLA_EDIT_MEDIA_SEARCH_TAXONOMY
MLA_ENABLE_MLA_ICONS
MLA_ENABLE_POST_MIME_TYPES
MLA_ENABLE_UPLOAD_MIMES
MLA_EXCLUDE_REVISIONS
MLA_EXIF_SIZE
MLA_FEATURED_IN_TUNING
MLA_GALLERY_IN_TUNING
MLA_INSERTED_IN_TUNING
MLA_MEDIA_GRID_TOOLBAR
MLA_MEDIA_MODAL_DETAILS_AUTOFILL
MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX
MLA_MEDIA_MODAL_DETAILS_TAG_METABOX
MLA_MEDIA_MODAL_MIMETYPES
MLA_MEDIA_MODAL_MONTHS
MLA_MEDIA_MODAL_ORDER
MLA_MEDIA_MODAL_ORDERBY
MLA_MEDIA_MODAL_SEARCHBOX
MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS
MLA_MEDIA_MODAL_TERMS
MLA_MEDIA_MODAL_TERMS_SEARCH
MLA_MEDIA_MODAL_TOOLBAR
MLA_MLA_GALLERY_IN_TUNING
MLA_NEW_CUSTOM_FIELD
MLA_NEW_CUSTOM_RULE
MLA_POST_MIME_TYPES
MLA_SCREEN_DISPLAY_LIBRARY
MLA_SCREEN_MENU_TITLE
MLA_SCREEN_ORDER
MLA_SCREEN_PAGE_TITLE
MLA_SEARCH_MEDIA_FILTER_DEFAULTS
MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS
MLA_TABLE_ICON_SIZE
MLA_TABLE_VIEWS_WIDTH
MLA_TAXONOMY_FILTER_DEPTH
MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN
MLA_TAXONOMY_SUPPORT
MLA_UPLOAD_MIMES
MLA_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
package | Media Library Assistant |
---|---|
since | 1.00 |
initialize() : void
since | 1.00 |
---|
mla_custom_field_option_handler(string $action, string $key, array $value, array $args) : string
since | 1.10 |
---|---|
uses | \global\$mla_option_templates |
string
'render', 'update', 'delete', or 'reset'
string
option name, e.g., 'custom_field_mapping'
array
option parameters
array
Optional. null (default) for 'render' else option data, e.g., $_REQUEST
string
HTML table row markup for 'render' else message(s) reflecting the results of the operation.mla_delete_option(string $option, array $option_table) : boolean
Compatibility shim for MLACore::mla_delete_option
since | 0.1 |
---|
string
Name of the desired option
array
Custom option definitions
boolean
True if the option was deleted, otherwise falsemla_evaluate_custom_field_mapping(integer $post_id, string $category, array $settings, array $attachment_metadata) : array
since | 1.10 |
---|
integer
post ID to be evaluated
string
category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
array
(optional) custom_field_mapping values, default NULL (use current option value)
array
(optional) attachment_metadata, default NULL (use current postmeta database value)
array
Updates suitable for MLAData::mla_update_single_item, if anymla_evaluate_iptc_exif_mapping(object $post, string $category, array $settings, array $attachment_metadata, boolean $is_upload) : array
since | 1.00 |
---|
object
post object with current values
string
category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping
array
(optional) iptc_exif_mapping values, default - current option value
array
(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter
boolean
(optional) true if uploading a new item else false (default)
array
Updates suitable for MLAData::mla_update_single_item, if anymla_get_data_source(integer $post_id, string $category, array $data_value, array $attachment_metadata) : string | array
Compatibility shim for MLAData_Source::mla_get_data_source.
since | 1.70 |
---|
integer
post->ID of attachment
string
category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
array
data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )
array
(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)
string
array
data source valuemla_get_option(string $option, boolean $get_default, boolean $get_stored, array $option_table) : mixed
Compatibility shim for MLACore::mla_get_option
since | 0.1 |
---|
string
Name of the desired option
boolean
True to ignore current setting and return default values
boolean
True to ignore default values and return only stored values
array
Custom option definitions
mixed
Value(s) for the option or false if the option is not a defined MLA optionmla_iptc_exif_option_handler(string $action, string $key, array $value, array $args) : string
since | 1.00 |
---|---|
uses | \global\$mla_option_templates |
string
'render', 'update', 'delete', or 'reset'
string
option name, e.g., 'iptc_exif_mapping'
array
option parameters
array
Optional. null (default) for 'render' else option data, e.g., $_REQUEST
string
HTML table row markup for 'render' else message(s) reflecting the results of the operation.mla_is_data_source(string $candidate_name) : boolean
Compatibility shim for MLAData_Source::mla_is_data_source.
since | 1.80 |
---|
string
candidate data source name
boolean
true if candidate name matches a data sourcemla_search_option_handler(string $action, string $key, array $value, array $args) : string
since | 1.90 |
---|---|
uses | \global\$mla_option_templates |
string
'render', 'update', 'delete', or 'reset'
string
option name; 'search_connector' or 'search_fields'
array
option parameters
array
Optional. null (default) for 'render' else option data, e.g., $_REQUEST
string
HTML table row markup for 'render' else message(s) reflecting the results of the operation.mla_supported_taxonomies(string $support_type) : array
Compatibility shim for MLACore::mla_taxonomy_support
since | 1.90 |
---|
string
Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'
array
taxonomies assigned to $support_type; can be empty.mla_taxonomy_option_handler(string $action, string $key, array $value, array $args) : string
since | 0.30 |
---|---|
uses | \global\$mla_option_templates |
string
'render', 'update', 'delete', or 'reset'
string
option name, e.g., 'tax_support', or 'tax_flat_checklist'
array
option parameters
array
Optional. null (default) for 'render' else option data, e.g., $_REQUEST
string
HTML table row markup for 'render' else message(s) reflecting the results of the operation.mla_taxonomy_support(string $tax_name, string $support_type) : boolean | string
Compatibility shim for MLACore::mla_taxonomy_support
since | 0.30 |
---|
string
Taxonomy name, e.g., attachment_category
string
Optional. 'support' (default), 'quick-edit' or 'filter'
boolean
string
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_update_option(string $option, mixed $newvalue, array $option_table) : boolean
Compatibility shim for MLACore::mla_update_option
since | 0.1 |
---|
string
Name of the desired option
mixed
New value for the desired option
array
Custom option definitions
boolean
True if the value was changed or false if the update failedmla_wp_handle_upload_filter(array $file) : array
since | 1.70 |
---|
array
file parameters ( 'name' )
array
updated file parametersmla_wp_handle_upload_prefilter_filter(array $file) : array
since | 1.70 |
---|
array
file parameters ( 'name' )
array
updated file parameters_compose_custom_field_option_list(string $selection, array $blacklist) : string
since | 1.10 |
---|---|
uses | \global\$mla_option_templates |
string
current selection or 'none' (default)
array
optional list of terms to exclude from the list
string
HTML markup with select field options_compose_data_source_option_list(string $selection) : string
since | 1.10 |
---|---|
uses | \global\$mla_option_templates |
string
current selection or 'none' (default)
string
HTML markup with select field options_compose_iptc_option_list(string $selection) : string
since | 1.00 |
---|---|
uses | \global\$mla_option_templates |
string
current selection or 'none' (default)
string
HTML markup with select field options_compose_parent_option_list(string $taxonomy, integer $selection) : string
since | 1.00 |
---|---|
uses | \global\$mla_option_templates |
string
taxonomy slug
integer
current selection or 0 (zero, default)
string
HTML markup with select field options_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 |
---|
array
Custom field names from the postmeta table and MLA rules_get_term_id(string $term_name, integer $term_parent, string $taxonomy, array $post_terms) : integer
since | 2.01 |
---|
string
term name (not slug)
integer
zero or term's parent term_id
string
taxonomy slug
array
term objects currently assigned to the item
integer
term_id for the term name_load_option_templates() : void
since | 0.80 |
---|
_update_custom_field_mapping(array $current_values, array $new_values) : array
since | 1.10 |
---|
array
current custom_field_mapping values
array
new values
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(array $current_values, array $new_values) : array
since | 1.00 |
---|
array
current iptc_exif_mapping values
array
new values
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(array $current_values, array $new_values) : array
since | 1.00 |
---|
array
current iptc_exif_mapping values
array
new values
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(array $current_values, array $new_values) : array
since | 1.00 |
---|
array
current iptc_exif_mapping values
array
new values
array
( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )$mla_option_templates : array
since | 0.80 |
---|
MLA_ADD_NEW_BULK_EDIT
MLA_ADD_NEW_BULK_EDIT_ON_TOP
MLA_BULK_CHUNK_SIZE
MLA_COUNT_TERM_ATTACHMENTS
MLA_DEBUG_DISPLAY_LIMIT
MLA_DEBUG_FILE
MLA_DEBUG_REPLACE_LEVEL
MLA_DEBUG_REPLACE_PHP_LOG
MLA_DEBUG_REPLACE_PHP_REPORTING
MLA_DEFAULT_ORDER
MLA_DEFAULT_ORDERBY
MLA_EDIT_MEDIA_META_BOXES
MLA_EDIT_MEDIA_SEARCH_TAXONOMY
MLA_ENABLE_MLA_ICONS
MLA_ENABLE_POST_MIME_TYPES
MLA_ENABLE_UPLOAD_MIMES
MLA_EXCLUDE_REVISIONS
MLA_EXIF_SIZE
MLA_FEATURED_IN_TUNING
MLA_GALLERY_IN_TUNING
MLA_INSERTED_IN_TUNING
MLA_MEDIA_GRID_TOOLBAR
MLA_MEDIA_MODAL_DETAILS_AUTOFILL
MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX
Categories".
MLA_MEDIA_MODAL_DETAILS_TAG_METABOX
Tags".
MLA_MEDIA_MODAL_MIMETYPES
MLA_MEDIA_MODAL_MONTHS
MLA_MEDIA_MODAL_ORDER
MLA_MEDIA_MODAL_ORDERBY
MLA_MEDIA_MODAL_SEARCHBOX
MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS
MLA_MEDIA_MODAL_TERMS
MLA_MEDIA_MODAL_TERMS_SEARCH
MLA_MEDIA_MODAL_TOOLBAR
MLA_MLA_GALLERY_IN_TUNING
MLA_NEW_CUSTOM_FIELD
MLA_NEW_CUSTOM_RULE
MLA_POST_MIME_TYPES
MLA_SCREEN_DISPLAY_LIBRARY
MLA_SCREEN_MENU_TITLE
MLA_SCREEN_ORDER
MLA_SCREEN_PAGE_TITLE
MLA_SEARCH_MEDIA_FILTER_DEFAULTS
MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS
MLA_TABLE_ICON_SIZE
MLA_TABLE_VIEWS_WIDTH
MLA_TAXONOMY_FILTER_DEPTH
MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN
MLA_TAXONOMY_SUPPORT
MLA_UPLOAD_MIMES
MLA_VERSION_OPTION