twentyseventeen_custom_colors_saturation

過濾鉤子
apply_filters( 'twentyseventeen_custom_colors_saturation', 50 )
引數
  • (int) $saturation Color saturation level.
    Required:
定義位置
  • wp-content/themes/twentyseventeen/inc/color-patterns.php , line 23
相關勾子
twentynineteen_custom_colors_saturationtwentyseventeen_custom_colors_csstwentynineteen_custom_colors_saturation_selectiontwentynineteen_custom_colors_csstwentynineteen_custom_colors_lightness
相關方法
wp_register_custom_classname_support_wp_customize_loader_settings
引入
Twenty Seventeen 1.0
棄用
-

twentyseventeen_custom_colors_saturation: 這是一個過濾鉤子,允許開發者改變 Twenty Seventeen 主題中自定義顏色的飽和度(強度)。

過濾Twenty Seventeen的預設飽和度。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );
$saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );
$saturation         = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );

常見問題

FAQs
檢視更多 >