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

get_current_theme() WordPress Function

The get_current_theme() function is used to retrieve the current theme. This function can be used to get the name of the current theme, or to get an array of information about the current theme.

get_current_theme() #

Retrieve current theme name.


Description

Top ↑

See also


Top ↑

Return

(string)


Top ↑

Source

File: wp-includes/deprecated.php

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


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Use wp_get_theme()
1.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More