get_current_theme()
get_current_theme() 检索当前主题名称。Retrieve current theme nam…
get_current_theme()
检索当前主题名称。
Retrieve current theme name.
检索当前主题名称。
Retrieve current theme name.
目录锚点:#说明#返回#源码#笔记
说明(Description)
另见函数 wp_get_theme()
返回(Return)
(string)
源码(Source)
/**
* Retrieve current theme name.
*
* @since 1.5.0
* @deprecated 3.4.0
* @deprecated Use (string) wp_get_theme()
* @see wp_get_theme()
*
* @return string
*/
function get_current_theme() {
_deprecated_function( __FUNCTION__, '3.4', 'wp_get_theme()' );
if ( $theme = get_option( 'current_theme' ) )
return $theme;
return wp_get_theme()->get('Name');
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 3.4.0 | wp-includes/deprecated.php:2937 | 0 | 4 |
笔记(Notes)
当前主题名称
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!