current_theme_info

Retrieves information on the current active theme.

Description

(WP_Theme) current_theme_info(); 

Returns (WP_Theme)


Usage

  1. if ( !function_exists( 'current_theme_info' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = current_theme_info(); 
  7.  

Defined (1)

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

/wp-admin/includes/deprecated.php  
  1. function current_theme_info() { 
  2. _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); 
  3.  
  4. return wp_get_theme();