get_raw_theme_root()

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

获取相对于内容目录的原始主题根目录,而不应用筛选器。
Get the raw theme root relative to the content directory with no filters applied.
目录锚点:#参数#返回#源码

参数(Parameters)

参数类型必填说明
$stylesheet_or_template (string) 必需 主题的样式表或模板名称。
$skip_cache (bool) 可选 是否跳过缓存。默认为false,表示使用了缓存。

返回(Return)

(string)主题根。

源码(Source)

更新版本 源码位置 使用 被使用
3.1.0 wp-includes/theme.php:671 7 2