__construct()
ajax_user_can()
column_ID_parent()
column_alt_text()
column_attached_to()
column_author()
column_base_file()
column_caption()
column_cb()
column_date()
column_default()
column_description()
column_featured()
column_file_url()
column_galleries()
column_icon()
column_inserted()
column_menu_order()
column_mla_galleries()
column_modified()
column_parent()
column_post_mime_type()
column_post_name()
column_post_title()
column_title_name()
display_tablenav()
extra_tablenav()
get_bulk_actions()
get_columns()
get_hidden_columns()
get_sortable_columns()
get_views()
mla_admin_init_action()
mla_get_taxonomy_filter_dropdown()
mla_get_view()
mla_manage_columns_filter()
mla_manage_hidden_columns_filter()
mla_submenu_arguments()
pagination()
prepare_items()
print_column_headers()
single_row()
_avail_mime_types()
_build_inline_data()
_build_item_thumbnail()
_build_rollover_actions()
_format_post_status()
_handle_primary_column()
get_default_primary_column_name()
handle_row_actions()
_get_view()
$currently_hidden
$default_columns
$default_hidden_columns
$default_sortable_columns
$mla_wpml_table
$rollover_id
$attached
$detached
$is_trash
Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu
Extends the core WP_List_Table class.
package | Media Library Assistant |
---|---|
since | 0.1 |
__construct()
since | 0.1 |
---|
ajax_user_can() : bool
since | 2.13 |
---|
bool
column_ID_parent(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_alt_text(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_attached_to(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_base_file(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_caption(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_cb(array $item) : string
The 'cb' column is given special treatment when columns are processed.
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_date(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML 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. The taxonomy and custom field columns are handled here. All other columns should have a specific method, so this function returns a troubleshooting message.
since | 0.1 |
---|
array
A singular item (one full row's worth of data)
array
The name/slug of the column to be processed
string
Text or HTML to be placed inside the columncolumn_description(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_featured(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_file_url(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_galleries(array $item) : string
since | 0.70 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_icon(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_inserted(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_mla_galleries(array $item) : string
since | 0.70 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_modified(array $item) : string
since | 0.30 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_parent(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_post_mime_type(array $item) : string
since | 0.30 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_post_name(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_post_title(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columncolumn_title_name(array $item) : string
since | 0.1 |
---|
array
A singular attachment (post) object
string
HTML markup to be placed inside the columndisplay_tablenav(string $which)
Adds the list/grid switcher in WP 4.0+
since | 2.25 |
---|
string
'top' or 'bottom', i.e., above or below the table rows
extra_tablenav(string $which) : void
Modeled after class-wp-posts-list-table.php in wp-admin/includes.
since | 0.1 |
---|
string
'top' or 'bottom', i.e., above or below the table rows
get_bulk_actions() : array
since | 0.1 |
---|
array
Contains all the bulk actions: 'slugs'=>'Visible Titles'get_columns() : array
since | 0.1 |
---|
array
Column information: 'slugs'=>'Visible Titles'get_hidden_columns() : array
since | 0.1 |
---|
array
Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')get_sortable_columns() : array
since | 0.1 |
---|
array
Sortable column information,e.g., 'slug' => array('data_value', (boolean) initial_descending )get_views() : array
These are listed across the top of the page and managed by WordPress.
since | 0.1 |
---|
array
View information,e.g., array ( id => link )mla_admin_init_action()
Called in the admin_init action because the list_table object isn't created in time to affect the "screen options" setup.
since | 0.30 |
---|
mla_get_taxonomy_filter_dropdown(integer $selected, array $dropdown_options) : string
since | 1.20 |
---|
integer
currently selected term_id || zero (default)
array
additional wp_dropdown_categories options; default empty
string
HTML markup for dropdown boxmla_get_view(string $view_slug, string $current_view) : string
since | 2.11 |
---|
string
View slug, key to MLA_POST_MIME_TYPES array
string
Slug for current view
string
| false HTML for link to display the view, false if count = zeromla_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 | 0.1 |
---|
array
list of table columnsmla_manage_hidden_columns_filter(string $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 | 0.1 |
---|
string
current list of hidden columns, if any
string
'managemedia_page_mla-menucolumnshidden'
object
WP_User object, if logged in
array
updated list of hidden columnspagination(string $which)
since | 1.42 |
---|
string
'top' | 'bottom'
prepare_items()
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 | 0.1 |
---|
print_column_headers(bool $with_id)
since | 1.42 |
---|
bool
Whether to set the id attribute or not
single_row(object $item) : void
since | .20 |
---|
object
the current item
_avail_mime_types(array $num_posts) : array
Modeled after get_available_post_mime_types in wp-admin/includes/post.php, but uses the output of wp_count_attachments() as input.
since | 0.1 |
---|
array
Number of posts for each MIME type
array
Mime type names_build_inline_data(object $item) : string
since | 0.20 |
---|
object
A singular attachment (post) object
string
HTML _build_item_thumbnail(object $item) : string
since | 2.15 |
---|
object
A singular attachment (post) object
string
HTML _build_rollover_actions(object $item, string $column) : array
since | 0.1 |
---|
object
A singular attachment (post) object
string
Current column name
array
Names and URLs of row-level actions_format_post_status(string $post_status) : string
since | 2.01 |
---|
string
post_status
string
Status label or empty string_handle_primary_column(object $item, string $column_name, string $column_content) : string
For WordPress before 4.3, add rollover actions and inline_data to the first visible column. For 4.3 and later, merge the icon with the primary visible column and add div tags.
since | 2.13 |
---|
object
A singular attachment (post) object
string
Current column name
string
Current column contents
string
Complete column contentget_default_primary_column_name() : string
since | 2.13 |
---|---|
access | protected |
string
Name of the default primary columnhandle_row_actions(object $item, string $column_name, string $primary) : string
since | 2.13 |
---|---|
access | protected |
object
Attachment being acted upon.
string
Current column name.
string
Primary column name.
string
Row actions output for media attachments._get_view(string $view_slug, string $current_view) : string
since | 1.40 |
---|
string
View slug, key to MLA_POST_MIME_TYPES array
string
Slug for current view
string
| false HTML for link to display the view, false if count = zero$currently_hidden : array
Records hidden columns so row-level actions are not assigned to them.
since | 0.1 |
---|
$default_columns : array
since | 0.1 |
---|
$default_hidden_columns : array
since | 0.1 |
---|
$default_sortable_columns : array
since | 0.1 |
---|
$mla_wpml_table : object
since | 2.11 |
---|
$rollover_id : int
Set to the current Post-ID when row-level actions are output for the row.
since | 0.1 |
---|
$attached : int
since | 2.11 |
---|
$detached : int
Declaration added in MLA v2.11 for WP 4.2 compatibility.
since | 0.1 |
---|
$is_trash : int
Declaration added in MLA v2.11 for WP 4.2 compatibility.
since | 0.1 |
---|