WP_Posts_List_Table::display_rows
Generates the list table rows.
Method of the class: WP_Posts_List_Table{}
No Hooks.
Returns
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_queryWordPress Query object. - Global. Int.
$per_page
Changelog
| Since 3.1.0 | Introduced. |
WP_Posts_List_Table::display_rows() WP Posts List Table::display rows code WP 7.0
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 );
}
}