WordPress at a glance
function is not described

get_theme_data() WP 1.5.0

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

Retrieve theme data from parsed theme file.

  • See: wp_get_theme()
Hooks in function
Return

Array. Theme data.

Usage

get_theme_data( $theme_file );
$theme_file(string) (required)
Theme file path.

Code of get theme data: wp-includes/deprecated.php VER 5.0.3

<?php
function get_theme_data( $theme_file ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
	$theme = new WP_Theme( basename( dirname( $theme_file ) ), dirname( dirname( $theme_file ) ) );

	$theme_data = array(
		'Name' => $theme->get('Name'),
		'URI' => $theme->display('ThemeURI', true, false),
		'Description' => $theme->display('Description', true, false),
		'Author' => $theme->display('Author', true, false),
		'AuthorURI' => $theme->display('AuthorURI', true, false),
		'Version' => $theme->get('Version'),
		'Template' => $theme->get('Template'),
		'Status' => $theme->get('Status'),
		'Tags' => $theme->get('Tags'),
		'Title' => $theme->get('Name'),
		'AuthorName' => $theme->get('Author'),
	);

	foreach ( apply_filters( 'extra_theme_headers', array() ) as $extra_header ) {
		if ( ! isset( $theme_data[ $extra_header ] ) )
			$theme_data[ $extra_header ] = $theme->get( $extra_header );
	}

	return $theme_data;
}