has_site_icon() WP 4.3.0
Whether the site has a Site Icon.
No Hooks.
Return
true/false. Whether the site has a site icon or not.
Usage
has_site_icon( $blog_id );
- $blog_id(int)
- ID of the blog in question.
Default: current blog
Changelog
Since 4.3.0 | Introduced. |
Code of has_site_icon() has site icon WP 5.6
function has_site_icon( $blog_id = 0 ) {
return (bool) get_site_icon_url( 512, '', $blog_id );
}