WP_Duotone::get_filter_svg_from_preset
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.
Gets the SVG for the duotone filter definition from a preset.
Exported for the deprecated function wp_get_duotone_filter_property().
Method of the class: WP_Duotone{}
No Hooks.
Returns
String. The SVG for the filter definition.
Usage
$result = WP_Duotone::get_filter_svg_from_preset( $preset );
- $preset(array) (required)
- The duotone preset.
Changelog
| Since 6.3.0 | Introduced. |
| Deprecated since | 6.3.0 |
WP_Duotone::get_filter_svg_from_preset() WP Duotone::get filter svg from preset code WP 7.0
public static function get_filter_svg_from_preset( $preset ) {
_deprecated_function( __FUNCTION__, '6.3.0' );
$filter_id = self::get_filter_id_from_preset( $preset );
return self::get_filter_svg( $filter_id, $preset['colors'] );
}