This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_Posts_List_Table::_display_rows( array $posts, int $level )
Parameters
- $posts
-
(Required)
- $level
-
(Required)
Source
File: wp-admin/includes/class-wp-posts-list-table.php
private function _display_rows( $posts, $level = 0 ) {
// Create array of post IDs.
$post_ids = array();
foreach ( $posts as $a_post )
$post_ids[] = $a_post->ID;
$this->comment_pending_count = get_pending_comments_num( $post_ids );
foreach ( $posts as $post )
$this->single_row( $post, $level );
}