wp_get_elements_class_name()WP 6.0.0

Gets the elements class names.

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. The unique class name.

Usage

wp_get_elements_class_name( $block );
$block(array) (required)
Block object.

Changelog

Since 6.0.0 Introduced.

wp_get_elements_class_name() code WP 6.5.2

function wp_get_elements_class_name( $block ) {
	return 'wp-elements-' . md5( serialize( $block ) );
}