[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> class-wp-media-list-table.php (summary)

List Table API: WP_Media_List_Table class

File Size: 868 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

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.

since: 3.1.0
param: array $args An associative array of arguments.

ajax_user_can()   X-Ref

return: bool

prepare_items()   X-Ref


get_views()   X-Ref

return: array

get_bulk_actions()   X-Ref

return: array

extra_tablenav( $which )   X-Ref

param: string $which

current_action()   X-Ref

return: string

has_items()   X-Ref

return: bool

no_items()   X-Ref
No description

views()   X-Ref
Override parent views so we can use the filter bar display.


get_columns()   X-Ref

return: array

get_sortable_columns()   X-Ref

return: array

column_cb( $item )   X-Ref
Handles the checkbox column output.

since: 4.3.0
since: 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
param: WP_Post $item The current WP_Post object.

column_title( $post )   X-Ref
Handles the title column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_author( $post )   X-Ref
Handles the author column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_desc( $post )   X-Ref
Handles the description column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_date( $post )   X-Ref
Handles the date column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_parent( $post )   X-Ref
Handles the parent column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_comments( $post )   X-Ref
Handles the comments column output.

since: 4.3.0
param: WP_Post $post The current WP_Post object.

column_default( $item, $column_name )   X-Ref
Handles output for the default column.

since: 4.3.0
since: 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
param: WP_Post $item        The current WP_Post object.
param: string  $column_name Current column name.

display_rows()   X-Ref


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'.
since: 4.3.0

_get_row_actions( $post, $att_title )   X-Ref

return: array
param: WP_Post $post
param: string  $att_title

handle_row_actions( $item, $column_name, $primary )   X-Ref
Generates and displays row action links.

return: string Row actions output for media attachments, or an empty string
since: 4.3.0
since: 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
param: WP_Post $item        Attachment being acted upon.
param: string  $column_name Current column name.
param: string  $primary     Primary column name.



Generated: Tue Dec 24 01:00:02 2024 Cross-referenced by PHPXref 0.7.1