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

get_theme( string $theme )

Retrieve theme data.


Description

See also


Parameters

$theme

(string) (Required) Theme name.


Return

(array|null) Null, if theme name does not exist. Theme data, if exists.


Source

File: wp-includes/deprecated.php

function get_theme( $theme ) {
	_deprecated_function( __FUNCTION__, 'WP-3.4.0', 'wp_get_theme( $stylesheet )' );

	$themes = get_themes();
	if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
		return $themes[ $theme ];
	return null;
}


Changelog

Changelog
Version Description
WP-3.4.0 Use wp_get_theme()
WP-1.5.0 Introduced. This function has been deprecated. Use wp_get_theme() instead.