render_block_core_shortcode()WP 5.0.0

Performs wpautop() on the shortcode block content.

No Hooks.

Return

String. Returns the block content.

Usage

render_block_core_shortcode( $attributes, $content );
$attributes(array) (required)
The block attributes.
$content(string) (required)
The block content.

Changelog

Since 5.0.0 Introduced.

render_block_core_shortcode() code WP 6.7.1

function render_block_core_shortcode( $attributes, $content ) {
	return wpautop( $content );
}