Class MLA (Media Library Assistant) Template List Table displays the shortcode templates submenu table
Extends the core WP_List_Table class.
| package |
Media Library Assistant |
|---|---|
| since | 2.40 |
__construct() : void
| since | 2.40 |
|---|---|
_build_rollover_actions( $item, $column) : array
| since | 2.40 |
|---|
arrayNames and URLs of row-level actions
_default_hidden_columns() : array
| since | 2.40 |
|---|---|
arraydefault list of hidden columns
_get_view( $view_slug, $template_item, $current_view) : string
| since | 2.40 |
|---|
string| false HTML for link to display the view, false if count = zero
_localize_default_columns_array()
| since | 2.40 |
|---|---|
column_cb( $item) : string
| since | 2.40 |
|---|
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. All columns should have a specific method, so this function returns a troubleshooting message.
| since | 2.40 |
|---|
stringText or HTML to be placed inside the column
column_description( $item) : string
| since | 2.40 |
|---|
stringHTML markup to be placed inside the column
column_name( $item) : string
| since | 2.40 |
|---|
stringHTML markup to be placed inside the column
column_shortcode( $item) : string
| since | 2.40 |
|---|
stringHTML markup to be placed inside the column
column_type( $item) : string
| since | 2.40 |
|---|
stringHTML markup to be placed inside the column
extra_tablenav( $which) : void
Modeled after class-wp-posts-list-table.php in wp-admin/includes.
| since | 2.40 |
|---|
get_bulk_actions() : array
| since | 2.40 |
|---|---|
arrayContains all the bulk actions: 'slugs'=>'Visible Titles'
get_columns() : array
| since | 2.40 |
|---|---|
arrayColumn information: 'slugs'=>'Visible Titles'
get_default_primary_column_name() : string
| since | 2.40 |
|---|---|
| access |
protected |
stringName of the default primary column
get_hidden_columns() : array
| since | 2.40 |
|---|---|
arrayColumn information,e.g., array(0 => 'ID_parent, 1 => 'title_name')
get_sortable_columns() : array
| since | 2.40 |
|---|---|
arraySortable column information,e.g., 'slugs'=>array('data_values',boolean)
get_views() : array
These are listed across the top of the page and managed by WordPress.
| since | 2.40 |
|---|---|
arrayView information,e.g., array ( id => link )
mla_admin_init() : void
| since | 2.40 |
|---|---|
mla_admin_print_styles_action()
| since | 2.40 |
|---|---|
mla_get_sortable_columns() : array
| since | 2.40 |
|---|---|
arrayname => array( orderby value, heading ) for sortable columns
mla_get_template_status_dropdown(string $selected = 'any') : string
| since | 2.40 |
|---|
stringOptional. Currently selected status. Default 'any'.
stringHTML markup for dropdown box.
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 | 2.40 |
|---|---|
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 | 2.40 |
|---|
arrayupdated list of hidden columns
pagination( $which)
| since | 2.40 |
|---|---|
prepare_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 | 2.40 |
|---|---|
print_column_headers(boolean $with_id = true)
| since | 2.40 |
|---|---|
booleanWhether to set the id attribute or not
single_row( $item) : void
| since | 2.40 |
|---|
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_Template_List_Table::_localize_default_columns_array.
| since | |
|---|---|
| access |
private |
| var |
{ @type string $$column_slug Column title. } |
array
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 | |
|---|---|
| access |
private |
| var |
{ @type string $$index Column slug. } |
array
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 initial sort order for the column is DESC/Descending.
| since | |
|---|---|
| access |
private |
| var |
{ @type array $$column_slug { @type string $orderby_name Database column or other sorting slug. @type boolean $descending Optional. True to make the initial orderby DESC. } } |
array