Title: WP_Theme_Install_List_Table::display_rows
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Theme_Install_List_Table::display_rows()

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#wp--skip-link--target)

Generates the list table rows.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#source)󠁿

    ```php
    public function display_rows() {
    	$themes = $this->items;
    	foreach ( $themes as $theme ) {
    		?>
    			<div class="available-theme installable-theme">
    			<?php
    				$this->single_row( $theme );
    			?>
    			</div>
    		<?php
    	} // End foreach $theme_names.

    	$this->theme_installer();
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-theme-install-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/class-wp-theme-install-list-table.php#L237)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/class-wp-theme-install-list-table.php#L237-L250)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#related)󠁿

| Uses | Description | 
| [WP_Theme_Install_List_Table::single_row()](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/single_row/)`wp-admin/includes/class-wp-theme-install-list-table.php` |

Prints a theme from the WordPress.org API.

  | 
| [WP_Theme_Install_List_Table::theme_installer()](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/theme_installer/)`wp-admin/includes/class-wp-theme-install-list-table.php` |

Prints the wrapper for the theme installer.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_theme_install_list_table/display_rows/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_theme_install_list_table%2Fdisplay_rows%2F)
before being able to contribute a note or feedback.