PHP block registration complements JavaScript registration using the register_block_type()
function. This typically happens in a dedicated include file organized within an inc/ directory structure.
Pass the path to the block’s build directory containing block.json to register_block_type. The block.json file contains all metadata WordPress needs including script references and block configuration.
The block name in block.json must exactly match the JavaScript registration name. Ensure both the title and editorScript properties are properly configured for the block to appear in the editor.