WP_Posts_List_Table::_display_rows() –

You appear to be a bot. Output may be restricted

Description

Usage

WP_Posts_List_Table::_display_rows( $posts, $level );

Parameters

$posts
( array ) required
$level
( int ) optional

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-posts-list-table.php
Lines:

1 to 18 of 18
  private function _display_rows( $posts, $level = 0 ) {
    $post_type = $this->screen->post_type;

    // Create array of post IDs.
    $post_ids = array();

    foreach ( $posts as $a_post ) {
      $post_ids[] = $a_post->ID;
    }

    if ( post_type_supports( $post_type, 'comments' ) ) {
      $this->comment_pending_count = get_pending_comments_num( $post_ids );
    }

    foreach ( $posts as $post ) {
      $this->WP_Posts_List_Table::single_row( $post, $level );
    }
  }
 

 View on GitHub View on Trac