get_custom_logo

過濾鉤子
apply_filters( 'get_custom_logo', $html, $blog_id )
引數
  • (string) $html Custom logo HTML output.
    Required:
  • (int) $blog_id ID of the blog to get the custom logo for.
    Required:
定義位置
相關勾子
get_custom_logo_image_attributesbulk_edit_custom_boxwidget_custom_html_contentquick_edit_custom_boxmanage_sites_custom_column
相關方法
get_custom_logothe_custom_logohas_custom_logoget_custom_headerwp_get_custom_cssget_post_custom
引入
4.6.0
棄用
-

get_custom_logo 函式返回自定義標識的HTML。它返回在網站的Customizer中被設定為自定義標誌的標誌。

過濾自定義標識的輸出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_custom_logo', $html, $blog_id );
return apply_filters( 'get_custom_logo', $html, $blog_id );
return apply_filters( 'get_custom_logo', $html, $blog_id );

常見問題

FAQs
檢視更多 >