WordPress函数:the_custom_logo

一、函数简介

显示链接到主页的自定义徽标,除非主题支持删除主页上的链接。(Displays a custom logo, linked to home unless the theme supports removing the link on the home page.)

 

二、函数参数

  • @param int $blog_id Optional. ID of the blog in question. Default is the ID of the current blog.

 

三、函数案例

(一)、案例1

<?php echo the_custom_logo( $blog_id = 0 ) ?>

输出带标签的图片的链接

 

四、源代码

/**
 * Displays a custom logo, linked to home unless the theme supports removing the link on the home page.
 *
 * @since 4.5.0
 *
 * @param int $blog_id Optional. ID of the blog in question. Default is the ID of the current blog.
 */
function the_custom_logo( $blog_id = 0 ) {
	echo get_custom_logo( $blog_id );
}

 

 

THE END