Changeset 59132 for trunk/src/wp-includes/blocks/index.php
- Timestamp:
- 09/30/2024 05:05:37 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/index.php
r59117 r59132 161 161 } 162 162 add_action( 'init', 'register_core_block_types_from_metadata' ); 163 164 /** 165 * Registers the core block metadata collection. 166 * 167 * This function is hooked into the 'init' action with a priority of 9, 168 * ensuring that the core block metadata is registered before the regular 169 * block initialization that happens at priority 10. 170 * 171 * @since 6.7.0 172 */ 173 function wp_register_core_block_metadata_collection() { 174 wp_register_block_metadata_collection( 175 BLOCKS_PATH, 176 BLOCKS_PATH . 'blocks-json.php' 177 ); 178 } 179 add_action( 'init', 'wp_register_core_block_metadata_collection', 9 );
Note: See TracChangeset
for help on using the changeset viewer.