get_current_theme()WP 1.5.0

Deprecated from version 3.4.0. It is no longer supported and can be removed in future releases. Use wp_get_theme() instead.

Retrieve current theme name.

No Hooks.

Return

String.

Usage

get_current_theme();

Notes

Changelog

Since 1.5.0 Introduced.
Deprecated since 3.4.0 Use wp_get_theme()

get_current_theme() code WP 6.5.2

function get_current_theme() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );

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

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