wp_get_duotone_filter_id()
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() wp get duotone filter id code WP 6.7.1
function wp_get_duotone_filter_id( $preset ) { _deprecated_function( __FUNCTION__, '6.3.0' ); return WP_Duotone::get_filter_id_from_preset( $preset ); }