Starting in WordPress 5.8, Greg Ziółkowski notes the block.json
metadata file should be used as the canonical way to register block types. There are many benefits to this move, including (but not limited to) the WordPress Plugins Directory‘s ability to detect block.json
files, highlight blocks included in plugins, and extract their metadata. 🔌