twentyeleven_color_schemes

過濾鉤子
apply_filters( 'twentyeleven_color_schemes', $color_scheme_options )
引數
  • (array) $color_scheme_options An associative array of color scheme options.
    Required:
定義位置
  • wp-content/themes/twentyeleven/inc/theme-options.php , line 171
相關勾子
twentyfifteen_color_schemestwentysixteen_color_schemestwentyeleven_enqueue_color_schemetwentyeleven_creditstwentyeleven_layout_classes
相關方法
register_admin_color_schemeswp_color_scheme_settingswp_ajax_save_user_color_schemeadmin_color_scheme_pickerset_url_schemewp_enqueue_classic_theme_styles
引入
Twenty Eleven 1.0
棄用
-

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

篩選出Twenty Eleven的顏色方案選項。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'twentyeleven_color_schemes', $color_scheme_options );
return apply_filters( 'twentyeleven_color_schemes', $color_scheme_options );
return apply_filters( 'twentyeleven_color_schemes', $color_scheme_options );

常見問題

FAQs
檢視更多 >