locale_stylesheet_uri
云策文档标注
概述
locale_stylesheet_uri 是一个 WordPress 过滤器,用于修改本地化样式表的 URI。它允许开发者自定义样式表路径,支持多语言或主题变体。
关键要点
- 过滤器名称:locale_stylesheet_uri
- 参数:$stylesheet_uri(本地化样式表 URI)和 $stylesheet_dir_uri(样式表目录 URI)
- 用途:在 get_locale_stylesheet_uri() 函数中调用,用于检索本地化样式表 URI
- 引入版本:WordPress 2.1.0
原文内容
Filters the localized stylesheet URI.
Parameters
$stylesheet_uristring-
Localized stylesheet URI.
$stylesheet_dir_uristring-
Stylesheet directory URI.
Source
return apply_filters( 'locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |