wp_get_duotone_filter_property() – Returns the CSS filter property url to reference the rendered SVG.

You appear to be a bot. Output may be restricted

Description

Returns the CSS filter property url to reference the rendered SVG.

Usage

$string = wp_get_duotone_filter_property( $preset );

Parameters

$preset
( array ) required – Duotone preset value as seen in theme.json.

Returns

string Duotone CSS filter property url value.

Source

File name: wordpress/wp-includes/block-supports/duotone.php
Lines:

1 to 4 of 4
function wp_get_duotone_filter_property( $preset ) {
  $filter_id = wp_get_duotone_filter_id( $preset );
  return "url('#" . $filter_id . "')";
}
 

 View on GitHub View on Trac