wp_render_elements_support()
Deprecated from version 6.6.0 Generation of element class name is handled via `render_block_data` filter.. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.
Updates the block content with 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
. Filtered block content.
Usage
wp_render_elements_support( $block_content, $block );
- $block_content(string) (required)
- Rendered block content.
- $block(array) (required)
- Block object.
Changelog
Since 5.8.0 | Introduced. |
Deprecated since 6.6.0 | Generation of element class name is handled via render_block_data filter. |
Since 6.4.0 | Added support for button and heading element styling. |
wp_render_elements_support() wp render elements support code WP 6.6.2
function wp_render_elements_support( $block_content, $block ) { _deprecated_function( __FUNCTION__, '6.6.0', 'wp_render_elements_class_name' ); return $block_content; }