WordPress开发者和主题制作者的搜索引擎



site_icon_url ›

Since4.3.0
已弃用n/a
site_icon_url ( $size = 512, $url = '', $blog_id = 0 )
参数: (3)
  • (int) $size Optional. Size of the site icon. Default 512 (pixels).
    Required: No
    默认: 512
  • (string) $url Optional. Fallback url if no site icon is found. Default empty.
    Required: No
    默认: (empty)
  • (int) $blog_id Optional. ID of the blog to get the site icon for. Default current blog.
    Required: No
    默认:
定义在:
文档:

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 ) );
}