W3cubDocs

/WordPress

wp_get_duotone_filter_property( array $preset ): string

Returns the CSS filter property url to reference the rendered SVG.

Parameters

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

Return

string Duotone CSS filter property url value.

Source

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

Changelog

Version Description
6.3.0 This function has been deprecated.
6.1.0 Allow unset for preset colors.
5.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_duotone_filter_property