[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
List Table API: WP_Comments_List_Table class
File Size: | 1079 lines (31 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Comments_List_Table:: (23 methods):
__construct()
floated_admin_avatar()
ajax_user_can()
prepare_items()
get_per_page()
no_items()
get_views()
get_bulk_actions()
extra_tablenav()
current_action()
get_columns()
comment_type_dropdown()
get_sortable_columns()
get_default_primary_column_name()
display()
single_row()
handle_row_actions()
column_cb()
column_comment()
column_author()
column_date()
column_response()
column_default()
Class: WP_Comments_List_Table - X-Ref
Core class used to implement displaying comments in a list table.__construct( $args = array() X-Ref |
Constructor. since: 3.1.0 param: array $args An associative array of arguments. |
floated_admin_avatar( $name, $comment_id ) X-Ref |
Adds avatars to comment author names. return: string Avatar with the user name. since: 3.1.0 param: string $name Comment author name. param: int $comment_id Comment ID. |
ajax_user_can() X-Ref |
return: bool |
prepare_items() X-Ref |
get_per_page( $comment_status = 'all' ) X-Ref |
return: int param: string $comment_status |
no_items() X-Ref |
get_views() X-Ref |
get_bulk_actions() X-Ref |
return: array |
extra_tablenav( $which ) X-Ref |
param: string $which |
current_action() X-Ref |
return: string|false |
get_columns() X-Ref |
return: array |
comment_type_dropdown( $comment_type ) X-Ref |
Displays a comment type drop-down for filtering on the Comments list table. since: 5.5.0 since: 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`. param: string $comment_type The current comment type slug. |
get_sortable_columns() X-Ref |
return: array |
get_default_primary_column_name() X-Ref |
Get the name of the default primary column. return: string Name of the default primary column, in this case, 'comment'. since: 4.3.0 |
display() X-Ref |
Displays the comments table. Overrides the parent display() method to render extra comments. since: 3.1.0 |
single_row( $item ) X-Ref |
param: WP_Comment $item |
handle_row_actions( $item, $column_name, $primary ) X-Ref |
Generate and display row actions links. return: string Row actions output for comments. An empty string since: 4.3.0 since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. param: WP_Comment $item The comment object. param: string $column_name Current column name. param: string $primary Primary column name. |
column_cb( $item ) X-Ref |
since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. param: WP_Comment $item The comment object. |
column_comment( $comment ) X-Ref |
param: WP_Comment $comment The comment object. |
column_author( $comment ) X-Ref |
param: WP_Comment $comment The comment object. |
column_date( $comment ) X-Ref |
param: WP_Comment $comment The comment object. |
column_response( $comment ) X-Ref |
param: WP_Comment $comment The comment object. |
column_default( $item, $column_name ) X-Ref |
since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. param: WP_Comment $item The comment object. param: string $column_name The custom column's name. |
Generated: Tue Dec 24 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |