PHP Class WPCOM_VIP_Featured_Plugins_List_Table, vip-mu-plugins-public

Inheritance: extends WP_List_Table
Show file Open project: Automattic/vip-mu-plugins-public Class Usage Examples

Public Properties

Property Type Description
$_column_headers Setting this variable won't run the filter at all
$filter string Filter the featured plugin list? Used to separate new layout

Public Methods

Method Description
__construct ( ) Constructor. Sets up the list table.
column_default ( array $slug, string $column_name ) : string Returns the content for a row in the list table.
display ( ) : void Output custom display for featured plugins
get_columns ( ) : array Return associative array of columns in the table
prepare_items ( ) Fetch the list of VIP featured plugins to display in the list table.

Method Details

__construct() public method

Constructor. Sets up the list table.
public __construct ( )

column_default() public method

Returns the content for a row in the list table.
public column_default ( array $slug, string $column_name ) : string
$slug array Plugin slug.
$column_name string Name of the table column.
return string

display() public method

Output custom display for featured plugins
public display ( ) : void
return void

get_columns() public method

Note - this is not used in this custom table of Featured Plugins, but exists to prevent future breakage if self::get_columns() ever ends up being called due to Core changes
public get_columns ( ) : array
return array The array of table columns

prepare_items() public method

Fetch the list of VIP featured plugins to display in the list table.
public prepare_items ( )

Property Details

$_column_headers public property

Setting this variable won't run the filter at all
public $_column_headers

$filter public property

Filter the featured plugin list? Used to separate new layout
public string $filter
return string