WP_Post_Comments_List_Table::display( bool $output_empty = false )
Parameters
- $output_empty
-
(Optional)
Default value: false
Source
File: wp-admin/includes/class-wp-post-comments-list-table.php
public function display( $output_empty = false ) {
$singular = $this->_args['singular'];
wp_nonce_field( "fetch-list-" . get_class( $this ), '_ajax_fetch_list_nonce' );
?>
<table class="<?php echo implode( ' ', $this->get_table_classes() ); ?>" style="display:none;">
<tbody id="the-comment-list"<?php
if ( $singular ) {
echo " data-wp-lists='list:$singular'";
} ?>>
<?php if ( ! $output_empty ) {
$this->display_rows_or_placeholder();
} ?>
</tbody>
</table>
<?php
}