WPDev.one
Core Function
View Source on Trac ↗

wp_get_duotone_filter_svg()

wp_get_duotone_filter_svg( mixed $preset )

Returns the duotone filter SVG string for the preset.

Parameters 1 required

Name / Type Description
$preset
array

Duotone preset value as seen in theme.json.

Required

Return Value

(string)
Duotone SVG filter.

Function Information

Since Version
5.9.1
Source File
wp-includes/deprecated.php
Advertisement