wpseek.com
A WordPress-centric search engine for devs and theme authors



site_icon_url › WordPress Function

Since4.3.0
Deprecatedn/a
site_icon_url ( $size = 512, $url = '', $blog_id = 0 )
Parameters: (3)
  • (int) $size Optional. Size of the site icon. Default 512 (pixels).
    Required: No
    Default: 512
  • (string) $url Optional. Fallback url if no site icon is found. Default empty.
    Required: No
    Default: (empty)
  • (int) $blog_id Optional. ID of the blog to get the site icon for. Default current blog.
    Required: No
    Default:
Defined at:
Codex:

Displays the Site Icon URL.



Source

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