Summery Summery
Returns the Site Icon URL.
Syntax Syntax
Parameters Parameters
- $size
-
(Optional) Size of the site icon. Default 512 (pixels).
Default value: 512
- $url
-
(Optional) Fallback url if no site icon is found.
Default value: ''
- $blog_id
-
(Optional) ID of the blog to get the site icon for. Default current blog.
Return Return
(string) Site Icon URL.
Source Source
File: wp-includes/general-template.php
);
if ( function_exists( 'is_rtl' ) ) {
$output = is_rtl() ? 'rtl' : 'ltr';
} else {
$output = 'ltr';
}
break;
case 'name':
default:
$output = get_option( 'blogname' );
break;
}
$url = true;
if ( strpos( $show, 'url' ) === false &&
strpos( $show, 'directory' ) === false &&
strpos( $show, 'home' ) === false ) {
$url = false;
}
if ( 'display' === $filter ) {
if ( $url ) {
/**
* Filters the URL returned by get_bloginfo().
*
* @since 2.0.5
*
* @param string $output The URL returned by bloginfo().
* @param string $show Type of information requested.
*/
$output = apply_filters( 'bloginfo_url', $output, $show );
} else {
/**
* Filters the site information returned by get_bloginfo().
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 4.3.0 | Introduced. |