Function: has_site_icon

has_site_icon( integer $blog_id )

Whether the site has a Site Icon.

Parameters

Name Type(s) Default Value Description
$blog_id integer

Optional. ID of the blog in question. Default current blog.

Returns

boolean

Whether the site has a site icon or not.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.