wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_theme › WordPress Function

Da1.5.0
Deprecato3.4.0
get_theme ( $theme )
Parametri:
  • (string) $theme Theme name.
    Richiesto:
Vedi:
Ritorna:
  • (array|null) Null, if theme name does not exist. Theme data, if exists.
Definito a:
Codex:

Retrieve theme data.



Sorgenti

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