twentynineteen_custom_colors_css

過濾鉤子
apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation )
引數
  • (string) $css Base theme colors CSS.
    Required:
  • (int) $primary_color The user's selected color hue.
    Required:
  • (string) $saturation Filtered theme color saturation level.
    Required:
定義位置
  • wp-content/themes/twentynineteen/inc/color-patterns.php , line 270
相關勾子
twentyseventeen_custom_colors_csstwentynineteen_custom_colors_lightnesstwentynineteen_custom_colors_saturationtwentynineteen_custom_colors_lightness_hovertwentynineteen_custom_colors_lightness_selection
相關方法
wp_get_custom_csswp_custom_css_cbwp_get_custom_css_postget_custom_logothe_custom_logowp_register_custom_classname_support
引入
Twenty Nineteen 1.0
棄用
-

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

過濾Twenty Nineteen自定義顏色CSS。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );
return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );
return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );

常見問題

FAQs
檢視更多 >