wp_get_duotone_filter_property( array $preset ): string

In this article

This function has been deprecated since 6.3.0.

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

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

VersionDescription
6.3.0Deprecated.
6.1.0Allow unset for preset colors.
5.9.0Introduced.

User Contributed Notes

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