MLAObjects

Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags

package

Media Library Assistant

since 0.20

Methods

Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters

_build_taxonomies() : void
static
since 0.1

Initialization function, similar to __construct()

initialize() : void
static
since 0.20

WordPress Filter for edit taxonomy "Attachments" column, which returns a count of the attachments assigned a given term

mla_taxonomy_column_filter( $current_value,  $column_name,  $term_id) : array
static
since 0.30

Arguments

$current_value

$column_name

$term_id

Response

array

HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them

WordPress Filter for edit taxonomy "Attachments" column, which replaces the "Posts" column with an equivalent "Attachments" column.

mla_taxonomy_get_columns_filter( $columns) : array
static
since 0.30

Arguments

$columns

Response

array

updated column definitions for the edit taxonomy list table