Dynamic blocks

Attributes and persistence

Block field values are serialized by WordPress into the block comment stored in post content.

#Field-to-attribute mapping

FieldBlock attribute type
Text, textarea, select, radio, date, colorstring
Number, range slidernumber
Toggle, single checkboxboolean
Multi-select, gallery, repeaterarray
Image, link buttonobject

#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.

Framework version2.0.0
PHP requirement8.0+
Documentation updatedAugust 2026