" />

twentyfourteen_custom_header_args

過濾鉤子
引數
  • (array) $args { An array of custom-header support arguments. @type bool $header_text Whether to display custom header text. Default false. @type int $width Width in pixels of the custom header image. Default 1260. @type int $height Height in pixels of the custom header image. Default 240. @type bool $flex_height Whether to allow flexible-height header images. Default true. @type string $admin_head_callback Callback function used to style the image displayed in the Appearance > Header screen. @type string $admin_preview_callback Callback function used to create the custom header markup in the Appearance > Header screen. }
    Required:
    Default:
定義位置
  • wp-content/themes/twentyfourteen/inc/custom-header.php , line 40
相關勾子
twentyfifteen_custom_header_argstwentysixteen_custom_header_argstwentyseventeen_custom_header_argstwentyfourteen_custom_background_argstwentysixteen_custom_header_sizes
相關方法
the_custom_header_markupget_custom_header_markupget_custom_headerremove_custom_image_headerhas_custom_headerget_post_custom_values
引入
Twenty Fourteen 1.0
棄用
-

twentyfourteen_custom_header_args: 這是一個自定義函式,用於設定二十四節氣主題的自定義標題功能。它設定了預設值,並允許使用者使用WordPress儀表盤中的”外觀”>”標題”頁面來定製他們網站的標題影象。

過濾Twenty Fourteen自定義頁首支援引數。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
apply_filters(
apply_filters(
apply_filters(

常見問題

FAQs
檢視更多 >