register_block_core_post_content

函数
register_block_core_post_content ( No parameters )

register_block_core_post_content: 这个函数用来注册一个新的核心文章内容块。它需要一个设置数组作为参数,以定义该块的行为和外观。

在服务器上注册”core/post-content”块。

function register_block_core_post_content() {
	register_block_type_from_metadata(
		__DIR__ . '/post-content',
		array(
			'render_callback' => 'render_block_core_post_content',
		)
	);
}

常见问题

FAQs
查看更多 >