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。

return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-01-29 14:09:47

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: