WP_Posts_List_Table::display_rows
Generates the list table rows.
Метод класса: 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
Список изменений
| С версии 3.1.0 | Введена. |
Код WP_Posts_List_Table::display_rows() WP Posts List Table::display rows WP 6.8.3
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 );
}
}