WP_List_Table::display_rows_or_placeholder()

Generates the tbody element for the list table.

More Information

This generates the tbody part of the table. Generally, you don’t need to call this explicitly as it is handled in the display() method.

Source

File: wp-admin/includes/class-wp-list-table.php

public function display_rows_or_placeholder() {
		if ( $this->has_items() ) {
			$this->display_rows();
		} else {
			echo '<tr class="no-items"><td class="colspanchange" colspan="' . $this->get_column_count() . '">';
			$this->no_items();
			echo '</td></tr>';
		}
	}

Changelog

Version Description
3.1.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/display_rows_or_placeholder