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

package Media Library Assistant
since 0.20

 Methods

Initialization function, similar to __construct()

initialize() : void

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(string $current_value, string $column_name, integer $term_id) : array

since 0.30

Parameters

$current_value

string

current column value; filled in by earlier filter handlers

$column_name

string

name of the column

$term_id

integer

ID of the term for which the count is desired

Returns

arrayHTML 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(array $columns) : array

since 0.30

Parameters

$columns

array

column definitions for the edit taxonomy list table

Returns

arrayupdated column definitions for the edit taxonomy list table

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

_build_taxonomies() : void

since 0.1