wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_register_block_metadata_collection › WordPress Function

Od6.7.0
Przestarzałyn/a
› wp_register_block_metadata_collection ( $path, $manifest )
Parametry: (2)
  • (string) $path The base path in which block files for the collection reside.
    Wymagane: Tak
  • (string) $manifest The path to the manifest file for the collection.
    Wymagane: Tak
Zdefiniowane na:
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.


Źródło

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