wp_render_duotone_filter_preset

函数
wp_render_duotone_filter_preset ( $preset )
参数
  • (array) $preset Duotone preset value as seen in theme.json.
    Required:
返回值
  • (string) Duotone CSS filter property.
相关
  • wp_get_duotone_filter_property()
定义位置
相关方法
wp_get_duotone_filter_propertywp_get_duotone_filter_svgwp_get_duotone_filter_idwp_render_duotone_supportwp_register_duotone_support
引入
5.9.0
弃用
5.9.1

wp_render_duotone_filter_preset: 这个函数输出一个具有指定颜色的双色调过滤器SVG预设。

渲染duotone filter SVG,并返回CSS filter属性以引用渲染的SVG。

function wp_render_duotone_filter_preset( $preset ) {
	_deprecated_function( __FUNCTION__, '5.9.1', 'wp_get_duotone_filter_property()' );

	return wp_get_duotone_filter_property( $preset );
}

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 17:32:57

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

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

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