get_theme()

最后更新于:2021-11-27 00:58:03

get_theme( string$theme)

Retrieve theme data.

参数

$theme

(string) (Required) Theme name.

响应

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

源文件

文件: gc-includes/deprecated.php

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

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