프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$actions | array | ||
$args | array | ||
$items | array | ||
$pagination | string | ||
$pagination_args | array | ||
$screen | object |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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
메소드 상세
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 | ||
리턴 | array |
public get_column_count ( ) : integer | ||
리턴 | integer |
protected get_column_info ( ) : array | ||
리턴 | array |
abstract protected get_columns ( ) : array | ||
리턴 | array |
protected get_items_per_page ( $option, $default = 20 ) : integer | ||
리턴 | integer |
public get_pagination_arg ( string $key ) : array | ||
$key | string | |
리턴 | array |
public get_search_query ( $escaped = true ) |
protected get_sortable_columns ( ) : array | ||
리턴 | 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 |