block_core_heading_render
block_core_heading_render ( $attributes, $content )
Parameters:- (array) attributes Attributes of the block being rendered.
- (string) content Content of the block being rendered.
Returns:- (string) The content of the block being rendered.
Defined at: - Introduced in WordPress: 6.2.0
- Deprecated in WordPress: —
Description
Adds a wp-block-heading class to the heading block content.For example, the following block content:
Hello World
Would be transformed to:
Hello World