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.
定义位置
相关方法
register_block_core_shortcoderender_block_core_coverrender_block_core_post_daterender_block_core_post_contentrender_block_core_tag_cloud
引入
-
弃用
-

render_block_core_shortcode: 这个函数用于在WordPress中渲染一个短码块。短码允许用户通过在一个块中输入一段简短的代码来为他们的网站添加复杂的功能: 这个函数负责生成短码块的HTML标记,用户可以自定义。

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

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 19:32:59

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: