wp_render_duotone_filter_preset( array $preset ): string

This function has been deprecated. Use wp_get_duotone_filter_property() instead.

Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG.

Description

See also

Parameters

$presetarrayrequired
Duotone preset value as seen in theme.json.

Return

string Duotone CSS filter property.

Source

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

Changelog

VersionDescription
5.9.1Use wp_get_duotone_filter_property() introduced in 5.9.1.
5.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.