get_current_theme() – Retrieve current theme name.

You appear to be a bot. Output may be restricted

Description

Retrieve current theme name.

Usage

$string = get_current_theme();

Parameters

Returns

string

Source

File name: wordpress/wp-includes/deprecated.php
Lines:

1 to 8 of 8
function get_current_theme() {
  _deprecated_function( get_current_theme, '3.4.0', 'wp_get_theme()' );

  if ( $theme = get_option( 'current_theme' ) )
    return $theme;

  return wp_get_theme()->get('Name');
}
 

 View on GitHub View on Trac