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:

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.

Related Functions

wp_register_core_block_metadata_collection, wp_register_font_collection, wp_unregister_font_collection, _wp_register_default_font_collections, register_block_core_button

Top Google Results

User discussions

wpseek mobile