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_uri() - 检索已启用主题的样式表URI - WordPress函数 - WordPress动力
当前浏览:首页 / WordPress函数 / get_stylesheet_uri()

get_stylesheet_uri()

检索已启用主题的样式表URI


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 "3239c45afed7bef4747a209933765d05" 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 "cb0be4401d17f7a2b11cf4fc4c76f5de" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

stylesheet

uri


描述

样式表文件名为“style.css”,附加到样式表目录URI路径。见get_stylesheet_directory_uri()。


返回

(string) 已启用的主题的样式表URI


说明

返回当前主题样式表的URL。



源码

查看源码 官方文档


更新日志

版本描述
1.5.0开始引入

使用示例

  • 示例1

    输出URL

    <?php echo get_stylesheet_uri(); ?>