wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_register_block_metadata_collection › WordPress Function

Seit6.7.0
Veraltetn/v
wp_register_block_metadata_collection ( $path, $manifest )
Parameter: (2)
  • (string) $path The base path in which block files for the collection reside.
    Erforderlich: Ja
  • (string) $manifest The path to the manifest file for the collection.
    Erforderlich: Ja
Definiert in:
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.


Quellcode

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