WP_Posts_List_Table::display_rows()publicWP 1.0

Метод класса: WP_Posts_List_Table{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_Posts_List_Table = new WP_Posts_List_Table();
$WP_Posts_List_Table->display_rows( $posts, $level );
$posts(массив)
-
По умолчанию: array()
$level(int)
-

Заметки

  • Global. WP_Query. $wp_query WordPress Query object.
  • Global. int. $per_page

Код WP_Posts_List_Table::display_rows() 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 );
	}
}