函数原型
get_template_directory(): string
函数描述
Retrieves template directory path for the active theme.
是否弃用
未弃用
函数参数
无
函数返回值
string Path to active theme’s template directory.
函数位置
File: wp-includes/theme.php.
函数源码
echo get_template_directory();
源码链接
变更日志
Changelog| Version | Description |
|---|
| 1.5.0 | Introduced. |