3 * List Table API: WP_Post_Comments_List_Table class
6 * @subpackage Administration
11 * Core class used to implement displaying post comments in a list table.
16 * @see WP_Comments_List_Table
18 class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
24 protected function get_column_info() {
27 'author' => __( 'Author' ),
28 'comment' => _x( 'Comment', 'column name' ),
40 protected function get_table_classes() {
41 $classes = parent::get_table_classes();
42 $classes[] = 'wp-list-table';
43 $classes[] = 'comments-box';
49 * @param bool $output_empty
51 public function display( $output_empty = false ) {
52 $singular = $this->_args['singular'];
54 wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
56 <table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;">
57 <tbody id="the-comment-list"<?php
59 echo " data-wp-lists='list:$singular'";
61 <?php if ( ! $output_empty ) {
62 $this->display_rows_or_placeholder();
71 * @param bool $comment_status
74 public function get_per_page( $comment_status = false ) {