get_custom_logo()
get_custom_logo( int $blog_id )
返回链接到主页的自定义徽标。
Returns a custom logo, linked to home.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$blog_id | (int) | 可选 | 有问题的博客的ID。默认值是当前博客的ID。 |
返回(Return)
(string)自定义徽标标记。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/general-template.php:949 | 2 | 13 |
笔记(Notes)
要获取自定义徽标图像的URL,请执行以下操作:
另见
get_custom_logo() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_custom_logo/