MLAShortcodes

Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users and loads the support class if the shortcodes are executed.

package

Media Library Assistant

since 0.20

Methods

Initialization function, similar to __construct()

initialize() : void
static
since 0.20

Get IPTC/EXIF or custom field mapping data source; front end posts/pages mode

mla_get_data_source( $post_id,  $category,  $data_value,  $attachment_metadata = NULL) : string|array
static

Compatibility shim for MLAData_Source::mla_get_data_source.

since 1.70

Arguments

$post_id

$category

$data_value

$attachment_metadata

Response

string|array

data source value

Parses shortcode parameters and returns the gallery objects

mla_get_shortcode_attachments( $post_parent,  $attr,  $return_found_rows = NULL) : array
static

Compatibility shim for MLAShortcode_Support::mla_get_shortcode_attachments

since

.50

Arguments

$post_parent

$attr

$return_found_rows

Response

array

List of attachments returned from WP_Query

Retrieve the terms in one or more taxonomies.

mla_get_terms( $attr) : array
static

Compatibility shim for MLAShortcode_Support::mla_get_terms

since 1.60

Arguments

$attr

Response

array

array of term objects, empty if none found

Identify custom field mapping data source; front end posts/pages mode

mla_is_data_source( $candidate_name) : boolean
static

Compatibility shim for MLAData_Source::mla_is_data_source.

since 1.80

Arguments

$candidate_name

Response

boolean

true if candidate name matches a data source

Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.

mla_no_texturize_shortcodes_filter( $no_texturize_shortcodes) : array
static

Defined as public because it's a filter.

since 1.94

Arguments

$no_texturize_shortcodes

Response

array

updated list of "do not texturize" shortcodes

The MLA Tag Cloud shortcode.

mla_tag_cloud_shortcode(array $attr, string $content = NULL) : string
static

Compatibility shim for MLAShortcode_Support::mla_tag_cloud_shortcode

since 1.60

Arguments

$attr

array

Attributes of the shortcode.

$content

string

Optional content for enclosing shortcodes

Response

string

HTML content to display the tag cloud.

The MLA Term List shortcode.

mla_term_list_shortcode(array $attr, string $content = NULL) : string
static

Compatibility shim for MLAShortcode_Support::mla_term_list_shortcode

since 2.25

Arguments

$attr

array

Attributes of the shortcode.

$content

string

Optional content for enclosing shortcodes

Response

string

HTML content to display the tag cloud.

Properties