twentyseventeen_custom_colors_css

過濾鉤子
apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation )
引數
  • (string) $css Base theme colors CSS.
    Required:
  • (int) $hue The user's selected color hue.
    Required:
  • (string) $saturation Filtered theme color saturation level.
    Required:
定義位置
  • wp-content/themes/twentyseventeen/inc/color-patterns.php , line 579
相關勾子
twentynineteen_custom_colors_csstwentyseventeen_custom_colors_saturationtwentynineteen_custom_colors_lightnesstwentyseventeen_custom_header_argstwentynineteen_custom_colors_saturation
相關方法
wp_get_custom_csswp_custom_css_cbget_post_custom_valueswp_get_custom_css_postget_custom_logothe_custom_logo
引入
Twenty Seventeen 1.0
棄用
-

twentyseventeen_custom_colors_css: 這是一個過濾鉤子,允許開發者新增自定義的CSS規則來改變Twenty Seventeen主題中各種元素的顏色。

過濾Twenty Seventeen的自定義顏色CSS。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );
return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );
return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );

常見問題

FAQs
檢視更多 >