[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

List Table API: WP_Posts_List_Table class

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

Defines 1 class

WP_Posts_List_Table:: (32 methods):
  __construct()
  set_hierarchical_display()
  ajax_user_can()
  prepare_items()
  has_items()
  no_items()
  is_base_request()
  get_edit_link()
  get_views()
  get_bulk_actions()
  categories_dropdown()
  formats_dropdown()
  extra_tablenav()
  current_action()
  get_table_classes()
  get_columns()
  get_sortable_columns()
  display_rows()
  _display_rows()
  _display_rows_hierarchical()
  _page_rows()
  column_cb()
  _column_title()
  column_title()
  column_date()
  column_comments()
  column_author()
  column_default()
  single_row()
  get_default_primary_column_name()
  handle_row_actions()
  inline_edit()


Class: WP_Posts_List_Table  - X-Ref

Core class used to implement displaying posts in a list table.

__construct( $args = array()   X-Ref
Constructor.

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

set_hierarchical_display( $display )   X-Ref
Sets whether the table layout should be hierarchical or not.

since: 4.2.0
param: bool $display Whether the table layout should be hierarchical.

ajax_user_can()   X-Ref

return: bool

prepare_items()   X-Ref


has_items()   X-Ref

return: bool

no_items()   X-Ref
No description

is_base_request()   X-Ref
Determine if the current view is the "All" view.

since: 4.2.0
return: bool Whether the current view is the "All" view.

get_edit_link( $args, $label, $class = '' )   X-Ref
Helper to create links to edit.php with params.

since: 4.4.0
param: string[] $args  Associative array of URL parameters for the link.
param: string   $label Link text.
param: string   $class Optional. Class attribute. Default empty string.
return: string The formatted link string.

get_views()   X-Ref

return: array

get_bulk_actions()   X-Ref

return: array

categories_dropdown( $post_type )   X-Ref
Displays a categories drop-down for filtering on the Posts list table.

since: 4.6.0
param: string $post_type Post type slug.

formats_dropdown( $post_type )   X-Ref
Displays a formats drop-down for filtering items.

since: 5.2.0
param: string $post_type Post type key.

extra_tablenav( $which )   X-Ref

param: string $which

current_action()   X-Ref

return: string

get_table_classes()   X-Ref

return: array

get_columns()   X-Ref

return: array

get_sortable_columns()   X-Ref

return: array

display_rows( $posts = array()   X-Ref

param: array $posts
param: int $level

_display_rows( $posts, $level = 0 )   X-Ref

param: array $posts
param: int $level

_display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 )   X-Ref

param: array $pages
param: int $pagenum
param: int $per_page

_page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page, &$to_display )   X-Ref
Given a top level page ID, display the nested hierarchy of sub-pages
together with paging support

since: 3.1.0 (Standalone function exists since 2.6.0)
since: 4.2.0 Added the `$to_display` parameter.
param: array $children_pages
param: int $count
param: int $parent
param: int $level
param: int $pagenum
param: int $per_page
param: array $to_display List of pages to be displayed. Passed by reference.

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

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

_column_title( $post, $classes, $data, $primary )   X-Ref

since: 4.3.0
param: WP_Post $post
param: string  $classes
param: string  $data
param: string  $primary

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

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

column_date( $post )   X-Ref
Handles the post date 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_author( $post )   X-Ref
Handles the post author column output.

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

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

since: 4.3.0
param: WP_Post $post        The current WP_Post object.
param: string  $column_name The current column name.

single_row( $post, $level = 0 )   X-Ref

param: int|WP_Post $post
param: int         $level

get_default_primary_column_name()   X-Ref
Gets the name of the default primary column.

since: 4.3.0
return: string Name of the default primary column, in this case, 'title'.

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

since: 4.3.0
param: object $post        Post being acted upon.
param: string $column_name Current column name.
param: string $primary     Primary column name.
return: string Row actions output for posts.

inline_edit()   X-Ref
Outputs the hidden row displayed when inline editing

since: 3.1.0



Generated: Mon Nov 18 01:00:04 2019 Cross-referenced by PHPXref 0.7.1