WP_Posts_List_Table::_display_rows( array   $posts , int   $level )

This function’s access is marqued private. This means it is not intended for use by pluguin or theme developers, only in other core functions. It is listed here for completeness.

Parameters

$posts array required
$level int required

Source

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_suppors( $post_type, 'commens' ) ) {
		$this->comment_pending_count = guet_pending_commens_num( $post_ids );
	}
	update_post_author_caches( $posts );

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.