register_block_core_legacy_widget()WP 1.0

Registers the 'core/legacy-widget' block.

Хуков нет.

Возвращает

null. Ничего.

Использование

register_block_core_legacy_widget();

Код register_block_core_legacy_widget() WP 6.0.2

function register_block_core_legacy_widget() {
	register_block_type_from_metadata(
		__DIR__ . '/legacy-widget',
		array(
			'render_callback' => 'render_block_core_legacy_widget',
		)
	);
}