Метод | Описание | |
---|---|---|
__construct ( ) | ************************************************************************ Constructor. | |
column_display_name ( array $item ) : string | ************************************************************************ Custom column method for the display_name column. | |
column_user_email ( array $item ) : string | ************************************************************************ Custom column method for the user_email column. | |
column_user_login ( array $item ) : string | ************************************************************************ Custom column method for the user_login column. | |
get_columns ( ) : array | ************************************************************************ Define the table's columns and titles. | |
get_sortable_columns ( ) : array | ************************************************************************ Define which columns are sortable. | |
prepare_items ( ) | ************************************************************************ Prepare data for display | |
single_row ( object $item ) : string | Set up classes for a single row based on active status |
public __construct ( ) |
public column_display_name ( array $item ) : string | |||
$item | array | A singular item (one full row's worth of data) | |
Результат | string | Text to be placed inside the column | ************************************************************************ |
public column_user_email ( array $item ) : string | |||
$item | array | A singular item (one full row's worth of data) | |
Результат | string | Text to be placed inside the column | ************************************************************************ |
public column_user_login ( array $item ) : string | |||
$item | array | A singular item (one full row's worth of data) | |
Результат | string | HTML to be placed inside the column | ************************************************************************ |
public get_columns ( ) : array | ||
Результат | array | An associative array containing column information: 'slugs'=>'Visible Titles' ************************************************************************ |
public get_sortable_columns ( ) : array | ||
Результат | array | An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool) ************************************************************************ |
public prepare_items ( ) |
public single_row ( object $item ) : string | ||
$item | object | The current item |
Результат | string | A row of cells |