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.
No Hooks.
Returns
null. Nothing (null).
Usage
wp_register_core_block_metadata_collection();
Changelog
| Since 6.7.0 | Introduced. |
wp_register_core_block_metadata_collection() wp register core block metadata collection code WP 6.9.1
function wp_register_core_block_metadata_collection() {
wp_register_block_metadata_collection(
BLOCKS_PATH,
BLOCKS_PATH . 'blocks-json.php'
);
}