WordPress at a glance
function is not described

WP_Media_List_Table::display_rows() WP 1.0

This is a method of the class: WP_Media_List_Table

No Hooks.

Return

Null. Nothing.

Usage

$WP_Media_List_Table = new WP_Media_List_Table();
$var = $WP_Media_List_Table->display_rows();

Notes

  • Global. WP_Post. $post

Code of WP Media List Table::display rows: wp-admin/includes/class-wp-media-list-table.php WP 5.2.2

<?php
public function display_rows() {
	global $post, $wp_query;

	$post_ids = wp_list_pluck( $wp_query->posts, 'ID' );
	reset( $wp_query->posts );

	$this->comment_pending_count = get_pending_comments_num( $post_ids );

	add_filter( 'the_title', 'esc_html' );

	while ( have_posts() ) :
		the_post();
		if (
			( $this->is_trash && $post->post_status != 'trash' )
			|| ( ! $this->is_trash && $post->post_status === 'trash' )
		) {
			continue;
		}
		$post_owner = ( get_current_user_id() == $post->post_author ) ? 'self' : 'other';
		?>
		<tr id="post-<?php echo $post->ID; ?>" class="<?php echo trim( ' author-' . $post_owner . ' status-' . $post->post_status ); ?>">
			<?php $this->single_row_columns( $post ); ?>
		</tr>
		<?php
	endwhile;
}