WP_Post_Comments_List_Table::display()publicWP 1.0

Method of the class: WP_Post_Comments_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Post_Comments_List_Table = new WP_Post_Comments_List_Table();
$WP_Post_Comments_List_Table->display( $output_empty );
$output_empty(true|false)
-
Default: false

WP_Post_Comments_List_Table::display() code WP 6.6.2

<?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
}