display_themes() WordPress Function

The display_themes() function is used to display all available themes on a WordPress site. This function can be used to display a list of themes, or to display a single theme. If a theme is not specified, then all available themes will be displayed.

display_themes() #

Displays theme content based on theme list.


Source

File: wp-admin/includes/theme-install.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();

}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.