WPDev.one
Core Function
View Source on Trac ↗

get_site_icon_url()

get_site_icon_url( mixed $size = 512, mixed $url = '', mixed $blog_id = 0 )

Returns the Site Icon URL.

Parameters 0 required

Name / Type Description
$size
int

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

$url
string

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

$blog_id
int

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

Return Value

(string)
Site Icon URL.

Function Information

Since Version
4.3.0
Source File
wp-includes/general-template.php
Advertisement