render_block_core_shortcode

函数


render_block_core_shortcode ( $attributes, $content )
参数
  • (array)
    $attributes
    The block attributes.
    Required:
  • (string)
    $content
    The block content.
    Required:
返回值
  • (string) Returns the block content.
定义位置
  • wp-includes/blocks/shortcode.php
    , line 16
引入
弃用

对短码区块内容执行wpautop()。

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