WP_Posts_List_Table::display_rows()publicWP 1.0

Method of the class: WP_Posts_List_Table{}

No Hooks.

Return

null. Nothing (null).

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

WP_Posts_List_Table::display_rows() code WP 6.5.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 );
	}
}