wp_register_block_metadata_collection
wp_register_block_metadata_collection ( $path, $manifest )
Parameters:- (string) path The base path in which block files for the collection reside.
- (string) manifest The path to the manifest file for the collection.
Defined at: - Introduced in WordPress: 6.7.0
- Deprecated in WordPress: —
Description
Registers a block metadata collection.This function allows core and third-party plugins to register their block metadata
collections in a centralized location. Registering collections can improve performance
by avoiding multiple reads from the filesystem and parsing JSON.