site_icon_url( int $size = 512, string $url = '', int $blog_id )

Displays the Site Icon URL.

Description Description

Parameters Parameters


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

Default value: 512


(string) (Optional) Fallback url if no site icon is found.

Default value: ''


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

Top ↑

Source Source

File: wp-includes/general-template.php

function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) {
	echo esc_url( get_site_icon_url( $size, $url, $blog_id ) );

Top ↑

Changelog Changelog

Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.