当前浏览:首页 / WordPress函数 / get_raw_theme_root()

get_raw_theme_root( string $stylesheet_or_template, bool $skip_cache = false ): string

获取未应用过滤器的相对于内容目录的原始主题根目录

root

theme 主题more...


参数

$stylesheet_or_templatestring必填
主题的样式表或模板名称。
$skip_cachebool可选
是否跳过缓存。
默认为false,这意味着使用了缓存。

默认:false


返回

string 主题根目录。



源码

查看源码 官方文档


更新日志

版本描述
3.1.0开始引入