has_site_icon()

最后更新于:2021-11-27 05:15:54

has_site_icon( int$blog_id)

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.

源文件

文件: gc-includes/general-template.php

function has_site_icon( $blog_id = 0 ) {
	return (bool) get_site_icon_url( 512, '', $blog_id );
}