On this page
has_site_icon( int $blog_id ): bool
Determines whether the site has a Site Icon.
Parameters
$blog_idint Optional-
ID of the blog in question. Default current blog.
Return
bool Whether the site has a site icon or not.
Source
File: wp-includes/general-template.php. View all references
function has_site_icon( $blog_id = 0 ) {
return (bool) get_site_icon_url( 512, '', $blog_id );
}
Related
Uses
| Uses | Description |
|---|---|
| get_site_icon_url() wp-includes/general-template.php | Returns the Site Icon URL. |
Used By
| Used By | Description |
|---|---|
| wp_site_icon() wp-includes/general-template.php | Displays site icon meta tags. |
| wp_admin_bar_my_sites_menu() wp-includes/admin-bar.php | Adds the “My Sites/[Site Name]” menu and all submenus. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/has_site_icon