首页    >    中文手册    >   常用函数-get_stylesheet_uri()

常用函数-get_stylesheet_uri()

常用函数-get_stylesheet_uri()
说明

检索当前 主题样式表单的URI。

样式表单文件名为’style.css’, 路径为get_stylesheet_directory_uri()

用法

<?php get_stylesheet_uri() ?>

参数

返回的值

(字符串)

返回当前主题样式表单的URI

示例
注释
用法:apply_filters() 在样式表单URI路径和样式表单目录URI上调用’stylesheet_uri’过滤器
用法:get_stylesheet_directory_uri()
修改记录

自1.5.0版本后

源文件

get_stylesheet_uri()位于 wp-includes/theme.php中。

相关资源

分类:中文手册

* 版权声明:作者WordPress啦! 转载请注明出处。