site_icon_url

函数


site_icon_url ( $size = 512, $url = '', $blog_id = 0 )
参数
  • (int)
    $size
    Optional. Size of the site icon. Default 512 (pixels).
    Required:
    Default: 512
  • (string)
    $url
    Optional. Fallback url if no site icon is found. Default empty.
    Required:
    Default: (empty)
  • (int)
    $blog_id
    Optional. ID of the blog to get the site icon for. Default current blog.
    Required:
定义位置
  • wp-includes/general-template.php
    , line 989
引入
4.3.0
弃用

Displays the Site Icon URL.

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