render_block_core_shortcode()
Performs wpautop() on the shortcode block content.
No Hooks.
Returns
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() render block core shortcode code WP 6.9.1
function render_block_core_shortcode( $attributes, $content ) {
return wpautop( $content );
}