CPAC_Deprecated_Storage_Model_MLA

Extends \CPAC_Storage_Model

Class CPAC Storage Model MLA (Media Library Assistant) supports the Admin Columns plugin

package

Media Library Assistant

since 2.22

Methods

Initializes some properties, installs filters and then calls the parent constructor to set some default configs.

__construct() 
since 2.22

Returns the Media/Assistant submenu table column slugs/keys

get_default_column_names() : array
since 2.22

Response

array

( index => 'column_slug' )

Returns the Media/Assistant submenu table column definitions

get_default_columns() : array
since 2.22

Response

array

( 'column_slug' => 'column_heading' )

Returns the custom fields assigned to Media Library items, removing those already present in the Media/Assistant submenu table

get_meta() : array
since 2.22

Response

array

( index => array( 0 => 'custom field name' ) )

Added in Admin Columns update to v2.4.9

init_manage_columns() 
since 2.23

Test for current screen = the Media/Assistant submenu screen

is_columns_screen() : boolean
since 2.22

Response

boolean

true if the Media/Assistant submenu is the current screen

Test for current screen = the Media/Assistant submenu screen, For Admin Columns 2.4.9+

is_current_screen() : boolean
since 2.23

Response

boolean

true if the Media/Assistant submenu is the current screen

Return the content of an Admin Columns custom column

mla_manage_value(string $content, object $item, string $column_name) : string
since 2.22

Arguments

$content

string

Current column content (empty string)

$item

object

Current Media Library item

$column_name

string

Current column slug

Response

string

Column value or NULL if not an Admin Columns custom column

Properties

Identifies submenu entry in the Admin sidebar, e.g., Media/Assistant in Media

subpage : string
since
var

Type(s)

string