WordPress at Your Fingertips
function is not described

WP_Posts_List_Table::_display_rows() private WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

// private - for code of main (parent) class only
$result = $this->_display_rows( $posts, $level );
$posts(array) (required)
-
$level(int)
-

Code of WP_Posts_List_Table::_display_rows() WP 5.8.2

private function _display_rows( $posts, $level = 0 ) {
	$post_type = $this->screen->post_type;

	// Create array of post IDs.
	$post_ids = array();

	foreach ( $posts as $a_post ) {
		$post_ids[] = $a_post->ID;
	}

	if ( post_type_supports( $post_type, 'comments' ) ) {
		$this->comment_pending_count = get_pending_comments_num( $post_ids );
	}

	foreach ( $posts as $post ) {
		$this->single_row( $post, $level );
	}
}