wp_get_elements_class_name()
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() wp get elements class name code WP 6.5.2
function wp_get_elements_class_name( $block ) { return 'wp-elements-' . md5( serialize( $block ) ); }