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

