\MLAObjects

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

Summary

Methods
Properties
Constants
initialize()
mla_taxonomy_get_columns_filter()
mla_taxonomy_column_filter()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_build_taxonomies()
No private properties found
N/A

Methods

initialize()

initialize() : void

Initialization function, similar to __construct()

mla_taxonomy_get_columns_filter()

mla_taxonomy_get_columns_filter(  $columns) : array

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

Parameters

$columns

Returns

array —

updated column definitions for the edit taxonomy list table

mla_taxonomy_column_filter()

mla_taxonomy_column_filter(  $current_value,   $column_name,   $term_id) : array

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

Parameters

$current_value
$column_name
$term_id

Returns

array —

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

_build_taxonomies()

_build_taxonomies() : void

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