display_theme

Prints a theme on the Install Themes pages.

Description

display_theme( (object) $theme ); 

Parameters (1)

0. $theme (object)
The theme.

Usage

  1. if ( !function_exists( 'display_theme' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/theme-install.php'; 
  3.  
  4. // The theme. 
  5. $theme = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = display_theme($theme); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/theme-install.php  
  1. function display_theme( $theme ) { 
  2. _deprecated_function( __FUNCTION__, '3.4.0' ); 
  3. global $wp_list_table; 
  4. if ( ! isset( $wp_list_table ) ) { 
  5. $wp_list_table->prepare_items(); 
  6. $wp_list_table->single_row( $theme );