register_block_core_term_description

函数
register_block_core_term_description ( No parameters )

register_block_core_term_description: 该函数在编辑器中注册一个术语描述块类型,并对其进行设置。术语描述块允许用户显示分类学术语的描述。

在服务器上注册`core/term-description`块。

function register_block_core_term_description() {
	register_block_type_from_metadata(
		__DIR__ . '/term-description',
		array(
			'render_callback' => 'render_block_core_term_description',
		)
	);
}

常见问题

FAQs
查看更多 >