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。

return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-06 12:33:18

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

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

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