get_current_theme(): string

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

Retrieve current theme name.

Description

See also

Return

string

Source

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');
}

Changelog

VersionDescription
3.4.0Use wp_get_theme()
1.5.0Introduced.

User Contributed Notes

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