函数原型
has_site_icon( int $blog_id ): bool
函数描述
Determines whether the site has a Site Icon.
是否弃用
未弃用
函数参数
-
$blog_id
int
Optional - ID of the blog in question. Default current blog.
函数返回值
bool Whether the site has a site icon or not.
函数位置
File: wp-includes/general-template.php.
函数源码
function has_site_icon( $blog_id = 0 ) {
return (bool) get_site_icon_url( 512, '', $blog_id );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |

