Warning: This function has been deprecated. Use wp_get_theme() instead.

get_current_theme()

Retrieve current theme name.


Description Description


Return Return

(string)


Top ↑

Source Source

File: wp-includes/deprecated.php

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

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

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


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note.