Title: display_themes
Published: April 25, 2014
Last modified: August 20, 2026

---

# display_themes()

## In this article

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

Displays theme content based on theme list.

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

    ```php
    function display_themes() {
    	global $wp_list_table;

    	if ( ! isset( $wp_list_table ) ) {
    		$wp_list_table = _get_list_table( 'WP_Theme_Install_List_Table' );
    	}
    	$wp_list_table->prepare_items();
    	$wp_list_table->display();
    }
    ```

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

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

| Uses | Description | 
| [WP_List_Table::display()](https://developer.wordpress.org/reference/classes/wp_list_table/display/)`wp-admin/includes/class-wp-list-table.php` |

Displays the table.

  | 
| [WP_List_Table::prepare_items()](https://developer.wordpress.org/reference/classes/wp_list_table/prepare_items/)`wp-admin/includes/class-wp-list-table.php` |

Prepares the list of items for displaying.

  | 
| [_get_list_table()](https://developer.wordpress.org/reference/functions/_get_list_table/)`wp-admin/includes/list-table.php` |

Fetches an instance of a [WP_List_Table](https://developer.wordpress.org/reference/classes/wp_list_table/) class.

  |

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

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

## User Contributed Notes

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