wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_register_core_block_metadata_collection › WordPress Function

Since6.7.0
已弃用n/a
› wp_register_core_block_metadata_collection ( 没有参数 )
定义在:
文档:

Registers the core block metadata collection.

This function is hooked into the 'init' action with a priority of 9, ensuring that the core block metadata is registered before the regular block initialization that happens at priority 10.


源码

function wp_register_core_block_metadata_collection() {
	wp_register_block_metadata_collection(
		BLOCKS_PATH,
		BLOCKS_PATH . 'blocks-json.php'
	);
}