wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_theme › WordPress Function

Depuis1.5.0
Dépréciée3.4.0
get_theme ( $theme )
Paramètres:
  • (string) $theme Theme name.
    Requis: Oui
Voir:
Retourne:
  • (array|null) Null, if theme name does not exist. Theme data, if exists.
Défini(e) dans:
Codex:

Retrieve theme data.



Source

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