wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_register_block_metadata_collection › WordPress Function

Since6.7.0
Deprecatedn/a
wp_register_block_metadata_collection ( $path, $manifest )
Parameters: (2)
  • (string) $path The base path in which block files for the collection reside.
    Required: Yes
  • (string) $manifest The path to the manifest file for the collection.
    Required: Yes
Defined at:
Codex:

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.


Source

function wp_register_block_metadata_collection( $path, $manifest ) {
	WP_Block_Metadata_Registry::register_collection( $path, $manifest );
}