参数 $stylesheet_or_templatestring必填 主题的样式表或模板名称。 $skip_cachebool可选 是否跳过缓存。默认为false,这意味着使用了缓存。 默认:false 返回 string 主题根目录。 相关使用描述get_option()基于选项名称检索选项值get_theme_roots()被使用描述get_theme_root()检索主题目录的路径wp_get_theme()获取主题的WP_Theme对象WP_Customize_Manager::get_template_root()WP_Customize_Manager::get_stylesheet_root()get_theme_root_uri()switch_theme()wp_get_themes() 源码查看源码 官方文档 更新日志版本描述3.1.0开始引入