wp_get_duotone_filter_property()
Deprecated since 6.3.0. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.
Returns the CSS filter property url to reference the rendered SVG.
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.
Returns
String. Duotone CSS filter property url value.
Usage
wp_get_duotone_filter_property( $preset );
- $preset(array) (required)
- Duotone preset value as seen in theme.json.
Changelog
| Since 5.9.0 | Introduced. |
| Since 6.1.0 | Allow unset for preset colors. |
| Deprecated since | 6.3.0 |
wp_get_duotone_filter_property() wp get duotone filter property code WP 6.8.3
function wp_get_duotone_filter_property( $preset ) {
_deprecated_function( __FUNCTION__, '6.3.0' );
return WP_Duotone::get_filter_css_property_value_from_preset( $preset );
}