content_url()
content_url( string $path = ” )
检索内容目录的URL。
Retrieves the URL to the content directory.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$path | (string) | 可选 | 相对于内容URL的路径。 |
返回(Return)
(string)附加了可选路径的内容URL链接。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.6.0 | wp-includes/link-template.php:3359 | 3 | 3 |
笔记(Notes)
例子
content_url() 为WP2原创文章,链接:https://www.wp2.cn/functions/content_url-2/