[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

List Table API: WP_MS_Sites_List_Table class

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

Defines 1 class

WP_MS_Sites_List_Table:: (22 methods):
  __construct()
  ajax_user_can()
  prepare_items()
  no_items()
  get_views()
  get_bulk_actions()
  pagination()
  extra_tablenav()
  get_columns()
  get_sortable_columns()
  column_cb()
  column_id()
  column_blogname()
  column_lastupdated()
  column_registered()
  column_users()
  column_plugins()
  column_default()
  display_rows()
  site_states()
  get_default_primary_column_name()
  handle_row_actions()


Class: WP_MS_Sites_List_Table  - X-Ref

Core class used to implement displaying sites in a list table for the network admin.

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

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

ajax_user_can()   X-Ref

return: bool

prepare_items()   X-Ref
Prepares the list of sites for display.

since: 3.1.0

no_items()   X-Ref
No description

get_views()   X-Ref
Gets links to filter sites by status.

return: array
since: 5.3.0

get_bulk_actions()   X-Ref

return: array

pagination( $which )   X-Ref

param: string $which The location of the pagination nav markup: 'top' or 'bottom'.

extra_tablenav( $which )   X-Ref
Extra controls to be displayed between bulk actions and pagination.

param: string $which The location of the extra table nav markup: 'top' or 'bottom'.
since: 5.3.0

get_columns()   X-Ref

return: array

get_sortable_columns()   X-Ref

return: array

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

param: array $item Current site.
since: 4.3.0
since: 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.

column_id( $blog )   X-Ref
Handles the ID column output.

param: array $blog Current site.
since: 4.4.0

column_blogname( $blog )   X-Ref
Handles the site name column output.

param: array $blog Current site.
since: 4.3.0

column_lastupdated( $blog )   X-Ref
Handles the lastupdated column output.

param: array $blog Current site.
since: 4.3.0

column_registered( $blog )   X-Ref
Handles the registered column output.

param: array $blog Current site.
since: 4.3.0

column_users( $blog )   X-Ref
Handles the users column output.

param: array $blog Current site.
since: 4.3.0

column_plugins( $blog )   X-Ref
Handles the plugins column output.

param: array $blog Current site.
since: 4.3.0

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

param: array  $item        Current site.
param: string $column_name Current column name.
since: 4.3.0
since: 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.

display_rows()   X-Ref


site_states( $site )   X-Ref
Maybe output comma-separated site states.

param: array $site
since: 5.3.0

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

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

return: string Row actions output for sites in Multisite, or an empty string
param: array  $item        Site being acted upon.
param: string $column_name Current column name.
param: string $primary     Primary column name.
since: 4.3.0
since: 5.9.0 Renamed `$blog` to `$item` to match parent class for PHP 8 named parameter support.



Generated: Thu Mar 28 01:00:02 2024 Cross-referenced by PHPXref 0.7.1