[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
List Table API: WP_Comments_List_Table class
File Size: | 1127 lines (33 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. |
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. 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: string[] Array of column titles keyed by their column name. |
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. |
get_sortable_columns() X-Ref |
return: array |
get_default_primary_column_name() X-Ref |
Gets the name of the default primary column. 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. |
single_row( $item ) X-Ref |
param: WP_Comment $item |
handle_row_actions( $item, $column_name, $primary ) X-Ref |
Generates and displays row actions links. param: WP_Comment $item The comment object. param: string $column_name Current column name. param: string $primary Primary column name. return: string Row actions output for comments. An empty string |
column_cb( $item ) X-Ref |
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 |
param: WP_Comment $item The comment object. param: string $column_name The custom column's name. |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |