twentysixteen_color_schemes

過濾鉤子
引數
  • (array) $schemes { Associative array of color schemes data. @type array $slug { Associative array of information for setting up the color scheme. @type string $label Color scheme label. @type array $colors HEX codes for default colors prepended with a hash symbol ('#'). Colors are defined in the following order: Main background, page background, link, main text, secondary text. } }
    Required:
    Default:
定義位置
  • wp-content/themes/twentysixteen/inc/customizer.php , line 313
相關勾子
twentyfifteen_color_schemestwentyeleven_color_schemestwentysixteen_creditstwentyeleven_enqueue_color_schemetwentysixteen_custom_header_sizes
相關方法
register_admin_color_schemeswp_ajax_save_user_color_schemewp_color_scheme_settingsadmin_color_scheme_pickerset_url_schemeregister_column_headers
引入
Twenty Sixteen 1.0
棄用
-

twentysixteen_color_schemes – 該函式用於指定Twenty Sixteen主題中的可用配色方案: 該函式返回一個顏色方案選項陣列,每個選項代表一個不同的顏色方案,使用者可以從中選擇。

過濾在Twenty Sixteen中註冊使用的色彩方案。

預設方案包括’預設’、’深色’、’灰色’、’紅色’和’黃色’。

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

常見問題

FAQs
檢視更多 >