__construct()
column_cb()
column_default()
column_description()
column_menu_order()
column_name()
column_plural()
column_post_mime_type()
column_singular()
column_specification()
column_table_view()
get_bulk_actions()
get_columns()
get_hidden_columns()
get_sortable_columns()
mla_admin_init_action()
mla_get_sortable_columns()
mla_localize_default_columns_array()
mla_manage_columns_filter()
mla_manage_hidden_columns_filter()
prepare_items()
single_row()
_build_inline_data()
_build_rollover_actions()
_default_hidden_columns()
$default_columns
$default_hidden_columns
$default_sortable_columns
Class MLA (Media Library Assistant) View List Table implements the "Views" admin settings tab
Extends the core WP_List_Table class.
| package | Media Library Assistant |
|---|---|
| since | 1.40 |
__construct() : void
| since | 1.40 |
|---|
column_cb(object $item) : string
The 'cb' column is given special treatment when columns are processed.
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_default(array $item, array $column_name) : string
Called when the parent class can't find a method specifically built for a given column. All columns should have a specific method, so this function returns a troubleshooting message.
| since | 1.40 |
|---|
arrayA singular item (one full row's worth of data)
arrayThe name/slug of the column to be processed
stringText or HTML to be placed inside the columncolumn_description(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_name(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_plural(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_post_mime_type(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_singular(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_specification(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columncolumn_table_view(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML markup to be placed inside the columnget_bulk_actions() : array
| since | 1.40 |
|---|
arrayContains all the bulk actions: 'slugs'=>'Visible Titles'get_columns() : array
| since | 1.40 |
|---|
arrayColumn information: 'slugs'=>'Visible Titles'get_hidden_columns() : array
| since | 1.40 |
|---|
arrayColumn information,e.g., array(0 => 'ID_parent, 1 => 'title_name')get_sortable_columns() : array
Also notes the current sort column, if set.
| since | 1.40 |
|---|
arraySortable column information,e.g., 'slugs'=>array('data_values',boolean)mla_admin_init_action() : void
| since | 1.40 |
|---|
mla_get_sortable_columns() : array
| since | 1.40 |
|---|
arrayname => array( orderby value, heading ) for sortable columnsmla_localize_default_columns_array() : void
Called from MLA:mla_plugins_loaded_action because the $default_columns information might be accessed from "front end" posts/pages.
| since | 1.71 |
|---|
mla_manage_columns_filter() : array
This required filter dictates the table's columns and titles. Set when the file is loaded because the list_table object isn't created in time to affect the "screen options" setup.
| since | 1.40 |
|---|
arraylist of table columnsmla_manage_hidden_columns_filter(mixed $result, string $option, object $user_data) : array
Required because the screen.php get_hidden_columns function only uses the get_user_option result. Set when the file is loaded because the object is not created in time for the call from screen.php.
| since | 1.40 |
|---|
mixedfalse or array with current list of hidden columns, if any
string'managesettings_page_mla-settings-menucolumnshidden'
objectWP_User object, if logged in
arrayupdated list of hidden columnsprepare_items() : void
This is where you prepare your data for display. This method will usually be used to query the database, sort and filter the data, and generally get it ready to be displayed. At a minimum, we should set $this->items and $this->set_pagination_args().
| since | 1.40 |
|---|
single_row(object $item) : void
| since | 1.40 |
|---|
objectthe current item
_build_inline_data(object $item) : string
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringHTML _build_rollover_actions(object $item, string $column) : array
| since | 1.40 |
|---|
objectAn MLA post_mime_type object
stringCurrent column name
arrayNames and URLs of row-level actions_default_hidden_columns() : array
| since | 1.40 |
|---|
arraydefault list of hidden columns$default_columns : array
This array defines table columns and titles where the key is the column slug (and class) and the value is the column's title text.
All of the columns are added to this array by MLA_View_List_Table::mla_admin_init_action.
| since | 1.40 |
|---|
$default_hidden_columns : array
This array is used when the user-level option is not set, i.e., the user has not altered the selection of hidden columns.
The value on the right-hand side must match the column slug, e.g., array(0 => 'ID_parent, 1 => 'title_name').
| since | 1.40 |
|---|
$default_sortable_columns : array
This array defines the table columns that can be sorted. The array key is the column slug that needs to be sortable, and the value is database column to sort by. Often, the key and value will be the same, but this is not always the case (as the value is a column name from the database, not the list table).
The array value also contains a boolean which is 'true' if the data is currently sorted by that column. This is computed each time the table is displayed.
| since | 1.40 |
|---|