We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
apiVersion
1 parent d4553cf commit f631537Copy full SHA for f631537
docs/reference-guides/block-api/block-metadata.md
@@ -79,6 +79,22 @@ register_block_type(
79
80
This section describes all the properties that can be added to the `block.json` file to define the behavior and metadata of block types.
81
82
+### API Version
83
+
84
+- Type: `number`
85
+- Optional
86
+- Localized: No
87
+- Property: `apiVersion`
88
+- Default: `1`
89
90
+```json
91
+{ "apiVersion": 2 }
92
+```
93
94
+The version of the Block API used by the block. The most recent version is `2` and it was introduced in WordPress 5.6.
95
96
+See the [the API versions documentation](/docs/reference-guides/block-api/block-api-versions.md) for more details.
97
98
### Name
99
100
- Type: `string`
0 commit comments