| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
List Table API: WP_Media_List_Table class
| File Size: | 935 lines (27 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_Media_List_Table:: (24 methods):
__construct()
ajax_user_can()
prepare_items()
get_views()
get_bulk_actions()
extra_tablenav()
current_action()
has_items()
no_items()
views()
get_columns()
get_sortable_columns()
column_cb()
column_title()
column_author()
column_desc()
column_date()
column_parent()
column_comments()
column_default()
display_rows()
get_default_primary_column_name()
_get_row_actions()
handle_row_actions()
Class: WP_Media_List_Table - X-Ref
Core class used to implement displaying media items in a list table.| __construct( $args = array() X-Ref |
| Constructor. param: array $args An associative array of arguments. |
| ajax_user_can() X-Ref |
| Checks if the current user has permissions to upload files. return: bool Whether the user can upload files. |
| prepare_items() X-Ref |
| Prepares the list of items for displaying. |
| get_views() X-Ref |
| Gets an array of links for the available views on this table. return: array<string, string> An array of links for the available views. |
| get_bulk_actions() X-Ref |
return: array<string, string> An associative array of bulk actions. |
| extra_tablenav( $which ) X-Ref |
| Displays extra controls between bulk actions and pagination. param: string $which The location of the extra table nav: 'top' or 'bottom'. |
| current_action() X-Ref |
return: string|false The current action. |
| has_items() X-Ref |
return: bool Whether the list table has items to display. |
| no_items() X-Ref |
| Displays a message when no media items are found. |
| views() X-Ref |
| Overrides parent views to use the filter bar display. |
| get_columns() X-Ref |
return: string[] Array of column titles keyed by their column name. |
| get_sortable_columns() X-Ref |
return: array<string, array<int, mixed>> An array of sortable columns. |
| column_cb( $item ) X-Ref |
| Handles the checkbox column output. param: WP_Post $item The current WP_Post object. |
| column_title( $post ) X-Ref |
| Handles the title column output. param: WP_Post $post The current WP_Post object. |
| column_author( $post ) X-Ref |
| Handles the author column output. param: WP_Post $post The current WP_Post object. |
| column_desc( $post ) X-Ref |
| Handles the description column output. param: WP_Post $post The current WP_Post object. |
| column_date( $post ) X-Ref |
| Handles the date column output. param: WP_Post $post The current WP_Post object. |
| column_parent( $post ) X-Ref |
| Handles the parent column output. param: WP_Post $post The current WP_Post object. |
| column_comments( $post ) X-Ref |
| Handles the comments column output. param: WP_Post $post The current WP_Post object. |
| column_default( $item, $column_name ) X-Ref |
| Handles output for the default column. param: WP_Post $item The current WP_Post object. param: string $column_name Current column name. |
| display_rows() X-Ref |
| Generates the list table rows. |
| get_default_primary_column_name() X-Ref |
| Gets the name of the default primary column. return: string Name of the default primary column, in this case, 'title'. |
| _get_row_actions( $post, $att_title ) X-Ref |
| Gets the row actions for a media item. param: WP_Post $post The current WP_Post object. param: string $att_title The attachment title. return: array<string, string> An array of row actions. |
| handle_row_actions( $item, $column_name, $primary ) X-Ref |
| Generates and displays row action links. param: WP_Post $item Attachment being acted upon. param: string $column_name Current column name. param: string $primary Primary column name. return: string Row actions output for media attachments, or an empty string |
| Generated : Mon May 4 08:20:14 2026 | Cross-referenced by PHPXref |