Displays the Site Icon URL.
Parameters
$sizeintoptional- Size of the site icon. Default 512 (pixels).
Default:
512 $urlstringoptional- Fallback url if no site icon is found.
Default:
'' $blog_idintoptional- ID of the blog to get the site icon for. Default current blog.
Source
function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
echo esc_url( get_site_icon_url( $size, $url, $blog_id ) );
}
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.