twentyfifteen_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, sidebar background, box background, main text and link, sidebar text and link, meta box background. } }
    Required:
    Default:
定義位置
  • wp-content/themes/twentyfifteen/inc/customizer.php , line 180
相關勾子
twentysixteen_color_schemestwentyeleven_color_schemestwentyfifteen_creditstwentyeleven_enqueue_color_schemetwentyfifteen_custom_header_args
相關方法
register_admin_color_schemeswp_color_scheme_settingsadmin_color_scheme_pickerwp_ajax_save_user_color_schemeset_url_schemesanitize_hex_color_no_hash
引入
Twenty Fifteen 1.0
棄用
-

twentyfifteen_color_schemes – 這個函式用來定義Twenty Fifteen主題中可用的顏色方案。它設定了不同的顏色選項,使用者可以在主題定製選單中進行選擇。

過濾註冊用於Twenty Fifteen的顏色方案。

預設方案包括’預設’、’深色’、’黃色’、’粉色’、’紫色’和’藍色’。

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

常見問題

FAQs
檢視更多 >