Warning: This function has been deprecated. Use wp_get_duotone_filter_property() instead.

wp_render_duotone_filter_preset() WordPress Function

The wp_render_duotone_filter_preset function allows you to create a duotone image effect using a custom color palette.

wp_render_duotone_filter_preset( array $preset ) #

Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG.


Description

Top ↑

See also


Top ↑

Parameters

$preset

(array)(Required)Duotone preset value as seen in theme.json.


Top ↑

Return

(string) Duotone CSS filter property.


Top ↑

Source

File: wp-includes/deprecated.php

function wp_render_duotone_filter_preset( $preset ) {
	_deprecated_function( __FUNCTION__, '5.9.1', 'wp_get_duotone_filter_property()' );

	return wp_get_duotone_filter_property( $preset );
}


Top ↑

Changelog

Changelog
VersionDescription
5.9.1Use wp_get_duotone_filter_property() introduced in 5.9.1.
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More