the_custom_logo

函式
the_custom_logo ( $blog_id = 0 )
引數
  • (int) $blog_id Optional. ID of the blog in question. Default is the ID of the current blog.
    Required:
定義位置
相關方法
has_custom_logoget_custom_logothe_author_loginget_the_author_loginthe_author_url
引入
4.5.0
棄用
-

the_custom_logo – 這個函式用來顯示一個網站的自定義標誌。它需要幾個引數,允許自定義輸出,如標誌的大小和類別。

顯示一個自定義的標誌,連結到主頁,除非主題支援在主頁上刪除連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function the_custom_logo( $blog_id = 0 ) {
echo get_custom_logo( $blog_id );
}
function the_custom_logo( $blog_id = 0 ) { echo get_custom_logo( $blog_id ); }
function the_custom_logo( $blog_id = 0 ) {
	echo get_custom_logo( $blog_id );
}

常見問題

FAQs
檢視更多 >