get_theme()WP 1.5.0

Deprecated from version 3.4.0. It is no longer supported and can be removed in future releases. Use wp_get_theme() instead.

Retrieve theme data.

No Hooks.

Return

Array|null. Null, if theme name does not exist. Theme data, if exists.

Usage

get_theme( $theme );
$theme(string) (required)
Theme name.

Notes

Changelog

Since 1.5.0 Introduced.
Deprecated since 3.4.0 Use wp_get_theme()

get_theme() code WP 6.5.2

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

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