register_block_core_cover

函数


register_block_core_cover ( No parameters )
定义位置
  • wp-includes/blocks/cover.php
    , line 73
引入
弃用

Registers the `core/cover` block renderer on server.

function register_block_core_cover() {
	register_block_type_from_metadata(
		__DIR__ . '/cover',
		array(
			'render_callback' => 'render_block_core_cover',
		)
	);
}