get_stylesheet()
get_stylesheet() 检索当前样式表的名称。Retrieve name of the curren…
get_stylesheet()
检索当前样式表的名称。
Retrieve name of the current stylesheet.
检索当前样式表的名称。
Retrieve name of the current stylesheet.
目录锚点:#说明#返回#源码
说明(Description)
管理员当前将前端主题设置为的主题名称。
无论出于何种目的,模板名和样式表名在大多数情况下都是相同的。
返回(Return)
(string)样式表名称。
源码(Source)
/**
* Retrieve name of the current stylesheet.
*
* The theme name that the administrator has currently set the front end theme
* as.
*
* For all intents and purposes, the template name and the stylesheet name are
* going to be the same for most cases.
*
* @since 1.5.0
*
* @return string Stylesheet name.
*/
function get_stylesheet() {
/**
* Filter the name of current stylesheet.
*
* @since 1.5.0
*
* @param string $stylesheet Name of the current stylesheet.
*/
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 1.5.0 | wp-includes/theme.php:170 | 23 | 3 |
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





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