Changeset 49948 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 01/08/2021 04:43:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r49927 r49948 201 201 } 202 202 $metadata['file'] = $metadata_file; 203 204 /** 205 * Filters the metadata provided for registering a block type. 206 * 207 * @since 5.7.0 208 * 209 * @param array $metadata Metadata for registering a block type. 210 */ 211 $metadata = apply_filters( 'block_type_metadata', $metadata ); 203 212 204 213 $settings = array(); … … 253 262 } 254 263 255 return register_block_type( 256 $metadata['name'], 264 /** 265 * Filters the settings determined from the block type metadata. 266 * 267 * @since 5.7.0 268 * 269 * @param array $settings Array of determined settings for registering a block type. 270 * @param array $metadata Metadata provided for registering a block type. 271 */ 272 $settings = apply_filters( 273 'block_type_metadata_settings', 257 274 array_merge( 258 275 $settings, 259 276 $args 260 ) 277 ), 278 $metadata 279 ); 280 281 return register_block_type( 282 $metadata['name'], 283 $settings 261 284 ); 262 285 }
Note: See TracChangeset
for help on using the changeset viewer.