WordPress Developer Ukraine, Kyiv
WordPress block.json Schema: apiVersion, Attributes, Supports, and Auto-Registration

WordPress block.json Schema: apiVersion, Attributes, Supports, and Auto- ...

block.json in WordPress: apiVersion, attributes, supports and registration Since WordPress 5.8 a block can be described completely in a block.json file. It is the single source of truth for the block: name, title, category, icon, attributes, supported features, scripts and styles. WordPress reads it in PHP with register_block_type() and in JavaScript, and enqueues the assets…