$rollover_id
$rollover_id : integer
Records assignment of row-level actions to a table row
Set to the current Post-ID when row-level actions are output for the row.
Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu
Extends the core WP_List_Table class.
$currently_hidden : array
Currently hidden columns
Records hidden columns so row-level actions are not assigned to them.
$default_hidden_columns : array
Default values for hidden columns
mla_get_custom_field_filter_dropdown( $selected = \MLACoreOptions::ALL_MLA_FILTER_METAKEY, $dropdown_options = array()) : string
Get dropdown box of custom field values to filter by, if available
$selected | ||
$dropdown_options |
HTML markup for dropdown box
mla_manage_hidden_columns_filter( $result, $option, $user_data) : array
Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'
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.
$result | ||
$option | ||
$user_data |
updated list of hidden columns
mla_manage_columns_filter() : array
Handler for filter 'manage_media_page_mla-menu_columns'
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.
list of table columns
column_default( $item, $column_name) : string
Supply a column value if no column-specific function has been defined
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.
$item | ||
$column_name |
Text or HTML to be placed inside the column
prepare_items()
Prepares the list of items for displaying
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().
_avail_mime_types( $num_posts) : array
Get MIME types with one or more attachments for view preparation
Modeled after get_available_post_mime_types in wp-admin/includes/post.php, but uses the output of wp_count_attachments() as input.
$num_posts |
Mime type names
handle_row_actions(object $item, string $column_name, string $primary) : string
Generate and display row actions links.
object | $item | Attachment being acted upon. |
string | $column_name | Current column name. |
string | $primary | Primary column name. |
Row actions output for media attachments.
_build_inline_data( $item) : string
Add hidden fields with the data for use in the inline editor
$item |
HTML
_handle_primary_column( $item, $column_name, $column_content) : string
Format primary column before/after Wordpress v4.3
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.
$item | ||
$column_name | ||
$column_content |
Complete column content