wp_get_duotone_filter_svg( array $preset ): string

In this article

This function has been deprecated.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Returns the duotone filter SVG string for the preset.

Parameters

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

Return

string Duotone SVG filter.

Source

function wp_get_duotone_filter_svg( $preset ) {
	_deprecated_function( __FUNCTION__, '6.3.0' );
	return WP_Duotone::get_filter_svg_from_preset( $preset );
}

Changelog

VersionDescription
6.3.0This function has been deprecated.
5.9.1Introduced.

User Contributed Notes

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