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 |
|---|---|
_avail_mime_types( $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 |
|---|
arrayMime type names
_build_inline_data( $item) : string
| since | 0.20 |
|---|
stringHTML
_build_item_thumbnail( $item) : string
| since | 2.15 |
|---|
stringHTML for thumbnail
_build_rollover_actions( $item, $column) : array
| since | 0.1 |
|---|
arrayNames and URLs of row-level actions
_format_post_status( $post_status) : string
| since | 2.01 |
|---|
stringStatus label or empty string
_get_view( $view_slug, $current_view) : string
| since | 1.40 |
|---|
string| false HTML for link to display the view, false if count = zero
_handle_primary_column( $item, $column_name, $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 |
|---|
stringComplete column content
ajax_user_can() : boolean
| since | 2.13 |
|---|---|
boolean
column_alt_text( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_attached_to( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_base_file( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_caption( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_cb( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_date( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_default( $item, $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 |
|---|
stringText or HTML to be placed inside the column
column_description( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_featured( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_file_url( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_galleries( $item) : string
| since | 0.70 |
|---|
stringHTML markup to be placed inside the column
column_icon( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_ID_parent( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_inserted( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_mla_galleries( $item) : string
| since | 0.70 |
|---|
stringHTML markup to be placed inside the column
column_modified( $item) : string
| since | 0.30 |
|---|
stringHTML markup to be placed inside the column
column_parent( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_post_mime_type( $item) : string
| since | 0.30 |
|---|
stringHTML markup to be placed inside the column
column_post_name( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_post_title( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
column_title_name( $item) : string
| since | 0.1 |
|---|
stringHTML markup to be placed inside the column
display_tablenav( $which)
Adds the list/grid switcher in WP 4.0+
| since | 2.25 |
|---|---|
extra_tablenav( $which) : void
Modeled after class-wp-posts-list-table.php in wp-admin/includes.
| since | 0.1 |
|---|
get_bulk_actions() : array
| since | 0.1 |
|---|---|
arrayContains all the bulk actions: 'slugs'=>'Visible Titles'
get_columns() : array
| since | 0.1 |
|---|---|
arrayColumn information: 'slugs'=>'Visible Titles'
get_default_primary_column_name() : string
| since | 2.13 |
|---|---|
| access |
protected |
stringName of the default primary column
get_hidden_columns() : array
| since | 0.1 |
|---|---|
arrayColumn information,e.g., array(0 => 'ID_parent, 1 => 'title_name')
get_sortable_columns() : array
| since | 0.1 |
|---|---|
arraySortable 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 |
|---|---|
arrayView information,e.g., array ( id => link )
handle_row_actions(object $item, string $column_name, string $primary) : string
| since | 2.13 |
|---|---|
| access |
protected |
objectAttachment being acted upon.
stringCurrent column name.
stringPrimary column name.
stringRow actions output for media attachments.
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_custom_field_filter_dropdown( $selected = \MLACoreOptions::ALL_MLA_FILTER_METAKEY, $dropdown_options = array()) : string
| since | 2.32 |
|---|
stringHTML markup for dropdown box
mla_get_taxonomy_filter_dropdown( $selected, $dropdown_options = array()) : string
| since | 1.20 |
|---|
stringHTML markup for dropdown box
mla_get_view( $view_slug, $current_view) : string
| since | 2.11 |
|---|
string| false HTML for link to display the view, false if count = zero
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 | 0.1 |
|---|---|
arraylist of table columns
mla_manage_hidden_columns_filter( $result, $option, $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 |
|---|
arrayupdated list of hidden columns
pagination( $which)
| since | 1.42 |
|---|---|
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(boolean $with_id = true)
| since | 1.42 |
|---|---|
booleanWhether to set the id attribute or not
single_row( $item) : void
| since |
.20 |
|---|
detached : integer
Declaration added in MLA v2.11 for WP 4.2 compatibility.
| since | |
|---|---|
| var |
integer
attached : integer
| since | |
|---|---|
| var |
integer
is_trash : integer
Declaration added in MLA v2.11 for WP 4.2 compatibility.
| since | |
|---|---|
| var |
integer
rollover_id : integer
Set to the current Post-ID when row-level actions are output for the row.
| since | |
|---|---|
| var |
integer
currently_hidden : array
Records hidden columns so row-level actions are not assigned to them.
| since | |
|---|---|
| var |
array
mla_wpml_table : object
| since | |
|---|---|
| var |
object
default_columns : array
| since | |
|---|---|
| var |
array
default_hidden_columns : array
| since | |
|---|---|
| var |
array
default_sortable_columns : array
| since | |
|---|---|
| var |
array