wpseek.com
A WordPress-centric search engine for devs and theme authors



register_core_block_types_from_metadata › WordPress Function

Since5.5.0
Deprecatedn/a
register_core_block_types_from_metadata ( No parameters )
Defined at:
Codex:

Registers core block types using metadata files.

Dynamic core blocks are registered separately.


Source

function register_core_block_types_from_metadata() {
	$block_folders = require BLOCKS_PATH . 'require-static-blocks.php';
	foreach ( $block_folders as $block_folder ) {
		register_block_type_from_metadata(
			BLOCKS_PATH . $block_folder
		);
	}
}