wp_render_duotone_filter_preset()WP 5.9.0

Deprecated from version 5.9.1. It is no longer supported and can 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.

Return

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.

Code of wp_render_duotone_filter_preset() WP 6.0

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 );
}