[ 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. param: array $args An associative array of arguments. since: 3.1.0 |
floated_admin_avatar( $name, $comment_id ) X-Ref |
Adds avatars to comment author names. param: string $name Comment author name. param: int $comment_id Comment ID. since: 3.1.0 return: string Avatar with the user name. |
ajax_user_can() X-Ref |
return: bool |
prepare_items() X-Ref |
get_per_page( $comment_status = 'all' ) X-Ref |
param: string $comment_status return: int |
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. param: string $comment_type The current comment type slug. since: 5.5.0 since: 5.6.0 Renamed from `comment_status_dropdown()` to `comment_type_dropdown()`. |
get_sortable_columns() X-Ref |
return: array |
get_default_primary_column_name() X-Ref |
Get the name of the default primary column. since: 4.3.0 return: string Name of the default primary column, in this case, 'comment'. |
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. param: WP_Comment $item The comment object. param: string $column_name Current column name. param: string $primary Primary column name. since: 4.3.0 since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. return: string Row actions output for comments. An empty string |
column_cb( $item ) X-Ref |
param: WP_Comment $item The comment object. since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. |
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 |
param: WP_Comment $item The comment object. param: string $column_name The custom column's name. since: 5.9.0 Renamed `$comment` to `$item` to match parent class for PHP 8 named parameter support. |
Generated: Sat Dec 14 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |