On this page
WP_Posts_List_Table::display_rows( array $posts = array(), int $level )
Parameters
$postsarray Optional-
Default:
array() $levelint Required
Source
File: wp-admin/includes/class-wp-posts-list-table.php. View all references
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 );
}
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Posts_List_Table::_display_rows_hierarchical() wp-admin/includes/class-wp-posts-list-table.php | |
| WP_Posts_List_Table::_display_rows() wp-admin/includes/class-wp-posts-list-table.php | |
| add_filter() wp-includes/plugin.php | Adds a callback function to a filter hook. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_posts_list_table/display_rows