get_site_icon_url
云策文档标注
概述
get_site_icon_url 是一个 WordPress 过滤器,用于修改站点图标的 URL。它允许开发者根据尺寸和博客 ID 自定义图标链接。
关键要点
- 过滤器名称:get_site_icon_url
- 参数:$url(站点图标 URL)、$size(图标尺寸)、$blog_id(博客 ID)
- 用途:在 get_site_icon_url() 函数中应用,用于过滤返回的图标 URL
- 引入版本:WordPress 4.4.0
代码示例
return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );
原文内容
Filters the site icon URL.
Parameters
$urlstring-
Site icon URL.
$sizeint-
Size of the site icon.
$blog_idint-
ID of the blog to get the site icon for.
Source
return apply_filters( 'get_site_icon_url', $url, $size, $blog_id );
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |