函数原型
get_stylesheet(): string
函数描述
Retrieves name of the current stylesheet.
是否弃用
未弃用
函数参数
无
函数返回值
string Stylesheet name.
函数位置
File: wp-includes/theme.php.
函数源码
function get_stylesheet() {
/**
* Filters the name of current stylesheet.
*
* @since 1.5.0
*
* @param string $stylesheet Name of the current stylesheet.
*/
return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |

