WP_List_Table::display()publicWP 3.1.0

Displays the table.

Method of the class: WP_List_Table{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_List_Table = new WP_List_Table();
$WP_List_Table->display();

Changelog

Since 3.1.0 Introduced.

WP_List_Table::display() code WP 6.6.2

<?php
public function display() {
	$singular = $this->_args['singular'];

	$this->display_tablenav( 'top' );

	$this->screen->render_screen_reader_content( 'heading_list' );
	?>
<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
	<?php $this->print_table_description(); ?>
<thead>
<tr>
	<?php $this->print_column_headers(); ?>
</tr>
</thead>

<tbody id="the-list"
	<?php
	if ( $singular ) {
		echo " data-wp-lists='list:$singular'";
	}
	?>
	>
	<?php $this->display_rows_or_placeholder(); ?>
</tbody>

<tfoot>
<tr>
	<?php $this->print_column_headers( false ); ?>
</tr>
</tfoot>

</table>
	<?php
	$this->display_tablenav( 'bottom' );
}