WP_Media_List_Table
- Since
- 3.1.0
- Source
wp-admin/includes/class-wp-media-list-table.php:17
Core class used to implement displaying media items in a list table.
Compatibility
- WordPress
- since 3.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 7
Every hook that fires from inside WP_Media_List_Table, in the order it appears in the class, grouped by the method that fires it.
Properties · 3
$comment_pending_countarrayprotected- Holds the number of pending comments for each post.
$detachedboolprivate- Whether the list table is for detached media.
$is_trashboolprivate- Whether the list table is for trash.
Methods · 25
- __construct()Constructor.
- ajax_user_can()Checks if the current user has permissions to upload files.
- prepare_items()Prepares the list of items for displaying.
- get_views()Gets an array of links for the available views on this table.
- get_bulk_actions()
- extra_tablenav()Displays extra controls between bulk actions and pagination.
- current_action()
- has_items()
- no_items()Displays a message when no media items are found.
- views()Overrides parent views to use the filter bar display.
- get_columns()
- get_sortable_columns()
- column_cb()Handles the checkbox column output.
- column_title()Handles the title column output.
- column_author()Handles the author column output.
- column_desc()Handles the description column output.
- column_date()Handles the date column output.
- column_parent()Handles the parent column output.
- column_comments()Handles the comments column output.
- column_default()Handles output for the default column.
- display_rows()Generates the list table rows.
- get_default_primary_column_name()Gets the name of the default primary column.
- _get_row_actions()Gets the row actions for a media item.
- handle_row_actions()Generates and displays row action links.
- get_primary_column_aria_label()Returns a clean label for the primary (File) column's row header `aria-label`.
Changelog
Introduced in 3.1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Method
get_primary_column_aria_label() added.verified against source3.1.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-admin/includes/class-wp-media-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.