wp_get_duotone_filter_id()WP 5.9.1

Deprecated from version 6.3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Returns the prefixed id for the duotone filter for use as a CSS id.

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.

Return

String. Duotone filter CSS id.

Usage

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

Changelog

Since 5.9.1 Introduced.
Deprecated since 6.3.0

wp_get_duotone_filter_id() code WP 6.5.2

function wp_get_duotone_filter_id( $preset ) {
	_deprecated_function( __FUNCTION__, '6.3.0' );
	return WP_Duotone::get_filter_id_from_preset( $preset );
}