Dynamic blocks
Attributes and persistence
Block field values are serialized by WordPress into the block comment stored in post content.
#Field-to-attribute mapping
| Field | Block attribute type |
|---|---|
| Text, textarea, select, radio, date, color | string |
| Number, range slider | number |
| Toggle, single checkbox | boolean |
| Multi-select, gallery, repeater | array |
| Image, link button | object |
#How saving works
The shared editor calls setAttributes(). WordPress includes the new attributes in the normal post save, undo history, autosaves, and revisions. Voxycure does not create a second save request.