WP_Posts_List_Table::display_rows( array $posts = array(), int $level )


Parameters

$posts

(array) (Optional)

Default value: array()

$level

(int) (Required)


Source

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

	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 );
		}
	}