Function: site_icon_url

site_icon_url( integer $size, string $url, integer $blog_id )

Displays the Site Icon URL.


Name Type(s) Default Value Description
$size integer 512

Optional. Size of the site icon. Default 512 (pixels).

$url string ''

Optional. Fallback url if no site icon is found. Default empty.

$blog_id integer

Optional. ID of the blog to get the site icon for. Default current blog.

WordPress Developer Newsletter

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