wp_render_duotone_filter_preset()
Deprecated since 5.9.1. It is no longer supported and may be removed in future releases. Use
wp_get_duotone_filter_property() introduced in 5.9.1 instead.Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG.
No Hooks.
Returns
String. Duotone CSS filter property.
Usage
wp_render_duotone_filter_preset( $preset );
- $preset(array) (required)
- Duotone preset value as seen in theme.json.
Notes
Changelog
| Since 5.9.0 | Introduced. |
| Deprecated since 5.9.1 | Use wp_get_duotone_filter_property() introduced in 5.9.1. |
wp_render_duotone_filter_preset() wp render duotone filter preset code WP 6.9.1
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 );
}