render_block_core_shortcode

Advertisement

Summery Summery

Performs wpautop() on the shortcode block content.

Syntax Syntax

render_block_core_shortcode( array $attributes, string $content )

Parameters Parameters

$attributes

(array) (Required) The block attributes.

$content

(string) (Required) The block content.

Return Return

(string) Returns the block content.

Source Source

File: wp-includes/blocks/shortcode.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.