register_block_core_comments_title

函数
register_block_core_comments_title ( No parameters )

register_block_core_comments_title: 这个函数用来为Gutenberg编辑器注册”评论标题”块。它显示评论区的标题。

在服务器上注册`core/comments-title`区块。

function register_block_core_comments_title() {
	register_block_type_from_metadata(
		__DIR__ . '/comments-title',
		array(
			'render_callback' => 'render_block_core_comments_title',
		)
	);
}

常见问题

FAQs
查看更多 >