WordPress at Your Fingertips
function is not described

WP_Posts_List_Table::display_rows() public WP 1.0

{} It's a method of the class: WP_Posts_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Posts_List_Table = new WP_Posts_List_Table();
$WP_Posts_List_Table->display_rows( $posts, $level );
$posts(array)
-
Default: array()
$level(int)
-

Notes

  • Global. WP_Query. $wp_query WordPress Query object.
  • Global. Int. $per_page

Code of WP_Posts_List_Table::display_rows() WP 5.8.2

public function display_rows( $posts = array(), $level = 0 ) {
	global $wp_query, $per_page;

	if ( empty( $posts ) ) {
		$posts = $wp_query->posts;
	}

	add_filter( 'the_title', 'esc_html' );

	if ( $this->hierarchical_display ) {
		$this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
	} else {
		$this->_display_rows( $posts, $level );
	}
}