W3cubDocs

/WordPress

render_block_core_shortcode( array $attributes, string $content )

Performs wpautop() on the shortcode block content.

Description

Parameters

$attributes

(array) (Required) The block attributes.

$content

(string) (Required) The block content.

Return

(string) Returns the block content.

Source

File: wp-includes/blocks/shortcode.php

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

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/render_block_core_shortcode