W3cubDocs

/WordPress

wp_get_duotone_filter_id( array $preset ): string

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

Parameters

$presetarrayrequired
Duotone preset value as seen in theme.json.

Return

string Duotone filter CSS id.

Source

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

Changelog

Version Description
6.3.0 This function has been deprecated.
5.9.1 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_duotone_filter_id