Function: get_site_icon_url

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

Returns the Site Icon URL.

Parameters

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.

Returns

string

Site Icon URL.

WordPress Developer Newsletter

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