twentytwenty_site_logo

過濾鉤子
apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents )
引數
  • (string) $html Compiled HTML based on our arguments.
    Required:
  • (array) $args Parsed arguments.
    Required:
  • (string) $classname Class name based on current view, home or single.
    Required:
  • (string) $contents HTML for site title or logo.
    Required:
定義位置
  • wp-content/themes/twentytwenty/inc/template-tags.php , line 84
相關勾子
twentytwenty_site_logo_argstwentytwenty_site_descriptiontwentytwenty_starter_contenttwentytwenty_svg_icon_colortwentytwenty_toggle_duration
相關方法
delete_site_optionget_custom_logoget_site_optionthe_custom_logoget_site_urlrender_block_core_site_logo
引入
Twenty Twenty 1.0
棄用
-

twenty_site_logo 是WordPress主題Twenty Twenty中的一個函式。它返回在網站設定中設定的網站標誌。

過濾`twentytwenty_site_logo()`的引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$html = apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents );
$html = apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents );
$html = apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents );

常見問題

FAQs
檢視更多 >