site_icon_url()
Displays the Site Icon URL.
No Hooks.
Return
null
. Nothing (null).
Usage
site_icon_url( $size, $url, $blog_id );
- $size(int)
- Size of the site icon.
Default: 512 (pixels) - $url(string)
- Fallback url if no site icon is found.
Default: '' - $blog_id(int)
- ID of the blog to get the site icon for.
Default: current blog
Changelog
Since 4.3.0 | Introduced. |
site_icon_url() site icon url code WP 6.6.2
function site_icon_url( $size = 512, $url = '', $blog_id = 0 ) { echo esc_url( get_site_icon_url( $size, $url, $blog_id ) ); }