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

get_current_theme ()

Retrieve current theme name.

Return: (string)

Source file: wp-includes/deprecated.php

View source


Used by


Source

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


Changelog


User Contributed Notes

  1. Current theme name
    Get the name of the current theme.

    $theme_name = get_current_theme();
    echo esc_html( $theme_name );
    

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