twentysixteen_custom_header_args

過濾鉤子
引數
  • (array) $args { An array of custom-header support arguments. @type string $default-text-color Default color of the header text. @type int $width Width in pixels of the custom header image. Default 1200. @type int $height Height in pixels of the custom header image. Default 280. @type bool $flex-height Whether to allow flexible-height header images. Default true. @type callable $wp-head-callback Callback function used to style the header image and text displayed on the blog. }
    Required:
    Default:
定義位置
  • wp-content/themes/twentysixteen/inc/customizer.php , line 61
相關勾子
twentyfifteen_custom_header_argstwentyseventeen_custom_header_argstwentysixteen_custom_header_sizestwentyfourteen_custom_header_argstwentysixteen_custom_background_args
相關方法
get_custom_header_markupthe_custom_header_markupget_custom_headerhas_custom_headerget_post_custom_valuesget_column_headers
引入
Twenty Sixteen 1.0
棄用
-

twentysixteen_custom_header_args – 該函式用於指定Twenty Sixteen主題中自定義標題功能的引數: 該函式返回一個引數陣列,這些引數用於自定義主題中的頭像或顏色的外觀。

過濾在Twenty Sixteen中新增’自定義標題’支援時使用的引數。

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

常見問題

FAQs
檢視更多 >