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-includes/deprecated.php
    , line 4232
引入
5.9.0
弃用
5.9.1

Renders the duotone filter SVG and returns the CSS filter property to
reference the rendered 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 );
}