Class MLA (Media Library Assistant) Data Source manages data sources for custom field mapping and shortcode execution
| package |
Media Library Assistant |
|---|---|
| since | 2.20 |
_evaluate_array_result( $value, $option, $keep_existing) : mixed
| since | 2.20 |
|---|
mixedarray for option = array|multi else string
_evaluate_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL) : string|array
| since | 2.20 |
|---|
string|arraydata source value
_evaluate_file_information( $upload_dir, &$wp_attached_files, &$wp_attachment_metadata, $post_id) : array
| since | 2.20 |
|---|
arrayabsolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes
_evaluate_post_information( $post_id, $category, $data_source) : mixed
| since | 2.20 |
|---|
mixed(string)/'' or (integer)/0 depending on $data_source type
mla_get_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL) : string|array
Defined as public so MLA Mapping Hooks clients can call it. Isolates clients from changes to _evaluate_data_source().
| since | 2.20 |
|---|
string|arraydata source value
mla_is_data_source( $candidate_name) : boolean
Determines whether a name matches any of the element-level data source dropdown options, i.e., excludes "template:" and "meta:" values.
| since | 2.20 |
|---|
booleantrue if candidate name matches a data source
custom_field_data_sources : array
| since | |
|---|---|
| var |
array