wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



register_core_block_types_from_metadata › WordPress Function

Seit5.5.0
Veraltetn/v
register_core_block_types_from_metadata ( Keine Parameter )
Definiert in:
Codex:

Registers core block types using metadata files.

Dynamic core blocks are registered separately.


Quellcode

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
		);
	}
}