Skip to content

Commit

Permalink
Handbook: Clarify the type of apiVersion in block metadata (#33249)
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored and sarayourfriend committed Jul 15, 2021
1 parent d4553cf commit f631537
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/reference-guides/block-api/block-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ register_block_type(

This section describes all the properties that can be added to the `block.json` file to define the behavior and metadata of block types.

### API Version

- Type: `number`
- Optional
- Localized: No
- Property: `apiVersion`
- Default: `1`

```json
{ "apiVersion": 2 }
```

The version of the Block API used by the block. The most recent version is `2` and it was introduced in WordPress 5.6.

See the [the API versions documentation](/docs/reference-guides/block-api/block-api-versions.md) for more details.

### Name

- Type: `string`
Expand Down

0 comments on commit f631537

Please sign in to comment.