_wp_get_presets_class_name()
Get the class name used on block level presets.
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.
Returns
String. The unique class name.
Usage
_wp_get_presets_class_name( $block );
- $block(array) (required)
- Block object.
Changelog
| Since 6.2.0 | Introduced. |
_wp_get_presets_class_name() wp get presets class name code WP 7.0
function _wp_get_presets_class_name( $block ) {
return 'wp-settings-' . md5( serialize( $block ) );
}