wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_current_theme › WordPress Function

Since1.5.0
已弃用3.4.0
get_current_theme ( 没有参数 )
查看:
返回:
  • (string)
定义在:
文档:

Retrieve current theme name.



源码

function get_current_theme() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );

	if ( $theme = get_option( 'current_theme' ) )
		return $theme;

	return wp_get_theme()->get('Name');
}