Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
get_stylesheet_directory() - 检索启用的主题的样式表目录路径 - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_stylesheet_directory()

get_stylesheet_directory()

检索启用的主题的样式表目录路径


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 3 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "ac5e33dfc440ed9188bdfcdbe4f25e2c" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "3239c45afed7bef4747a209933765d05" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

directory

stylesheet


返回

(string) 启用的主题的样式表目录路径。


说明



源码

查看源码 官方文档


更新日志

版本描述
1.5.0开始引入

使用示例

  • 示例1

    基本示例

    引入一个PHP文件

    <?php include( get_stylesheet_directory() . '/includes/myfile.php' ); ?>