On this page
site_icon_url( int $size = 512, string $url = '', int $blog_id )
Displays the Site Icon URL.
Parameters
$sizeint Optional-
Size of the site icon. Default 512 (pixels).
Default:
512 $urlstring Optional-
Fallback url if no site icon is found.
Default:
'' $blog_idint Optional-
ID of the blog to get the site icon for. Default current blog.
Source
File: wp-includes/general-template.php. View all references
function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
echo esc_url( get_site_icon_url( $size, $url, $blog_id ) );
}
Related
Uses
| Uses | Description |
|---|---|
| get_site_icon_url() wp-includes/general-template.php | Returns the Site Icon URL. |
| esc_url() wp-includes/formatting.php | Checks and cleans a URL. |
Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/site_icon_url