WP_Comments_List_Table
- Since
- 3.1.0
- Source
wp-admin/includes/class-wp-comments-list-table.php:17
Core class used to implement displaying comments in a list table.
Compatibility
- WordPress
- since 3.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Hooks and filters fired · 10
Every hook that fires from inside WP_Comments_List_Table, in the order it appears in the class, grouped by the method that fires it.
WP_Comments_List_Table::prepare_items()
- apply_filters( comments_list_table_query_args )filter line 172
WP_Comments_List_Table::extra_tablenav()
- do_action( restrict_manage_comments )action line 439
- do_action( manage_comments_nav )action line 466
Properties · 4
$checkboxpublic$pending_countpublic$extra_itemspublic$user_canprivate
Methods · 23
- __construct()Constructor.
- floated_admin_avatar()Adds avatars to comment author names.
- ajax_user_can()Checks if the user can edit posts.
- prepare_items()Prepares the comments list items.
- get_per_page()Gets the number of comments to display per page.
- no_items()Displays a message when no comments are found.
- get_views()Returns an array of comment status links.
- get_bulk_actions()Gets the available bulk actions for the comments list.
- extra_tablenav()Displays extra controls between bulk actions and pagination.
- current_action()Gets the current action selected from the bulk actions dropdown.
- get_columns()Gets the list of columns.
- comment_type_dropdown()Displays a comment type drop-down for filtering on the Comments list table.
- get_sortable_columns()Gets a list of sortable columns.
- get_default_primary_column_name()Gets the name of the default primary column.
- display()Displays the comments table.
- single_row()Generates content for a single row of the table.
- handle_row_actions()Generates and displays row actions links.
- column_cb()Outputs the checkbox column.
- column_comment()Outputs the comment column.
- column_author()Outputs the author column.
- column_date()Outputs the date column.
- column_response()Outputs the response column.
- column_default()Outputs the default column.
Changelog
Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-admin/includes/class-wp-comments-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.