get_custom_logo
apply_filters( ‘get_custom_logo’, string $html , int $blog_id )
过滤器::过滤自定义徽标输出。
Filter Hook: Filters the custom logo output.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$html | (string) | 自定义徽标HTML输出。 |
$blog_id | (int) | 获取自定义徽标的博客的ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/general-template.php:1005 | 1 | 0 |
笔记(Notes)
如果你用Google的结构化数据测试工具测试你的站点,你会得到一个错误,关于itemprop“logo”没有被Google识别为WP Header元素。
get_custom_logo 为WP2原创文章,链接:https://www.wp2.cn/hook/get_custom_logo-2/