Property | Type | Description | |
---|---|---|---|
$actions | array | ||
$args | array | ||
$items | array | ||
$pagination | string | ||
$pagination_args | array | ||
$screen | object |
Method | Description | |
---|---|---|
__construct ( array $args = [] ) | Constructor. The child class should call this constructor from its own constructor | |
ajax_response ( ) | Handle an incoming ajax request (called from admin-ajax.php). | |
ajax_user_can ( ) | Checks the current user's permissions. | |
bulk_actions ( ) | Display the bulk actions dropdown. | |
current_action ( ) : string | boolean | Get the current action selected from the bulk actions dropdown. | |
display ( ) | Display the table. | |
get_column_count ( ) : integer | Return number of visible columns. | |
get_pagenum ( ) : integer | Get the current page number | |
get_pagination_arg ( string $key ) : array | Access the pagination args. | |
get_search_query ( $escaped = true ) | Cause the real one doesn't work. | |
has_items ( ) : boolean | Whether the table has items to display or not. | |
no_items ( ) | Message to be displayed when there are no items. | |
prepare_items ( ) | Prepares the list of items for displaying. | |
search_box ( string $text, string $input_id ) | Display the search box. | |
views ( ) | Display the list of views available on this table. |
Method | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
comments_bubble ( integer $post_id, integer $pending_comments ) | Display a comment count bubble | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
display_rows ( ) | Generate the table rows. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
display_rows_or_placeholder ( ) | Generate the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
display_tablenav ( $which ) | Generate the table navigation above or below the table. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
extra_tablenav ( $which ) | Extra controls to be displayed between bulk actions and pagination. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_bulk_actions ( ) : array | Get an associative array ( option_name => option_title ) with the list of bulk actions available on this table. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_column_info ( ) : array | Get a list of all, hidden and sortable columns, with filter applied | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_columns ( ) : array | Get a list of columns. The format is: 'internal-name' => 'Title' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_items_per_page ( $option, $default = 20 ) : integer | Get number of items to display on a single page | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_sortable_columns ( ) : array | Get a list of sortable columns. The format is: 'internal-name' => 'orderby' or 'internal-name' => array( 'orderby', true ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
get_table_classes ( ) : array |
Get a list of CSS classes for the tag
Method Details
Constructor. The child class should call this constructor from its own constructor
Handle an incoming ajax request (called from admin-ajax.php).
Checks the current user's permissions.
Display a comment count bubble
Get the current action selected from the bulk actions dropdown.
|
protected display_rows_or_placeholder ( ) |
protected get_bulk_actions ( ) : array | ||
return | array |
public get_column_count ( ) : integer | ||
return | integer |
protected get_column_info ( ) : array | ||
return | array |
abstract protected get_columns ( ) : array | ||
return | array |
protected get_items_per_page ( $option, $default = 20 ) : integer | ||
return | integer |
public get_pagenum ( ) : integer | ||
return | integer |
public get_pagination_arg ( string $key ) : array | ||
$key | string | |
return | array |
public get_search_query ( $escaped = true ) |
protected get_sortable_columns ( ) : array | ||
return | array |
protected months_dropdown ( $post_type ) |
abstract public prepare_items ( ) |
protected print_column_headers ( boolean $with_id = true ) | ||
$with_id | boolean |
public search_box ( string $text, string $input_id ) | ||
$text | string | |
$input_id | string |
protected set_pagination_args ( array $args ) | ||
$args | array |
protected single_row ( object $item ) | ||
$item | object | The current item |
protected single_row_columns ( object $item ) | ||
$item | object | The current item |