wp_render_elements_support( string $block_content, array $block ): string

In this article

This function has been deprecated. Generation of element class name is handled via render_block_data filter instead.

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Updates the block content with elements class names.

Parameters

$block_contentstringrequired
Rendered block content.
$blockarrayrequired
Block object.

Return

string Filtered block content.

Source

function wp_render_elements_support( $block_content, $block ) {
	_deprecated_function( __FUNCTION__, '6.6.0', 'wp_render_elements_class_name' );
	return $block_content;
}

Changelog

VersionDescription
6.6.0Generation of element class name is handled via render_block_data filter.
6.4.0Added support for button and heading element styling.
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.