wp_get_duotone_filter_svg()
Deprecated since 6.3.0. It is no longer supported and may be removed in future releases. Use WP_Duotone::get_filter_svg_from_preset() instead.
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.
Returns
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 | Use WP_Duotone::get_filter_svg_from_preset() instead. |
wp_get_duotone_filter_svg() wp get duotone filter svg code WP 6.8.3
function wp_get_duotone_filter_svg( $preset ) {
_deprecated_function( __FUNCTION__, '6.3.0', 'WP_Duotone::get_filter_svg_from_preset()' );
return WP_Duotone::get_filter_svg_from_preset( $preset );
}