wp_get_duotone_filter_svg()WP 5.9.1

Deprecated from version 6.3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Returns the duotone filter SVG string for the preset.

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

String. Duotone SVG filter.

Usage

wp_get_duotone_filter_svg( $preset );
$preset(array) (required)
Duotone preset value as seen in theme.json.

Changelog

Since 5.9.1 Introduced.
Deprecated since 6.3.0

wp_get_duotone_filter_svg() code WP 6.5.2

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