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

常用函数-get_stylesheet_directory()

常用函数-get_stylesheet_directory()
说明

检索当前主题的样式表单目录路径。

用法

<?php get_stylesheet_directory() ?>

参数

返回的值

(字符串)

当前主题目录的路径

示例
注释
用法:apply_filters() 在样式表单路径和名称上调用’stylesheet_directory’过滤器
用法:get_stylesheet()
用法:get_theme_root()
修改记录

自1.5.0版本后

源文件

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

相关资源

分类:中文手册

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